Löschen/Deaktivierung
This commit is contained in:
@@ -276,6 +276,13 @@ export function initEditor() {
|
||||
async function confirmUnsavedChanges() {
|
||||
const dirty = await hasUnsavedChanges();
|
||||
if (!dirty) return 'ok';
|
||||
try {
|
||||
const currentSnapshot = await buildCurrentSnapshot();
|
||||
if (currentSnapshot && savedSnapshot && currentSnapshot === savedSnapshot) {
|
||||
clearDirty();
|
||||
return 'ok';
|
||||
}
|
||||
} catch {}
|
||||
const choice = await showUnsavedDialog();
|
||||
if (choice === 'save') {
|
||||
const okSave = await save();
|
||||
|
||||
Reference in New Issue
Block a user