mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented Discard changes button
This commit is contained in:
1 parent
681add852a
commit
28b705173e
17 files changed
+564
-43
No files matched your search
@@ -8,6 +8,7 @@ import App from './App.tsx'
|
||||
import { UpdateCheck } from './components/UpdateDialog.tsx'
|
||||
import { AmbientBackdrop } from './components/AmbientBackdrop.tsx'
|
||||
import { ConfirmHost } from './lib/confirm.tsx'
|
||||
import { QuitGuard } from './components/QuitGuard.tsx'
|
||||
import { preventHistoryNavigation } from './lib/noNavigation.ts'
|
||||
|
||||
preventHistoryNavigation()
|
||||
@@ -31,6 +32,8 @@ createRoot(document.getElementById('root')!).render(
|
||||
<UpdateCheck />
|
||||
{/* askConfirm()'s dialogs — the app's replacement for window.confirm. */}
|
||||
<ConfirmHost />
|
||||
{/* Save · Discard · Cancel when quitting with unsaved changes. */}
|
||||
<QuitGuard />
|
||||
</QueryClientProvider>
|
||||
</StrictMode>,
|
||||
)
|
||||
Reference in new issue
Block a user