()
| 37 | * should proceed. Skips the prompt when there's nothing to lose. |
| 38 | */ |
| 39 | export async function confirmReload(): Promise<boolean> { |
| 40 | if (!hasUnsavedReloadState()) return true; |
| 41 | return requestConfirmation({ |
| 42 | title: 'Reload data?', |
| 43 | message: 'Reloading will discard current/applied transforms and any pending deletions.', |
| 44 | confirmLabel: 'Reload', |
| 45 | tone: 'danger', |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Reset the entire session to initial state. |
no test coverage detected