Dashboard: Unsaved changes warning fixes (#54706)

* Quick test of alternative method

* change order of if condition again for better readability

* Think I have something that is working

* Update
This commit is contained in:
Torkel Ödegaard
2022-09-06 19:00:32 +02:00
committed by GitHub
parent ab79976a8d
commit e5c32c8cc9
7 changed files with 61 additions and 28 deletions

View File

@@ -45,6 +45,7 @@ function updatePanelModelWithUpdate(panel: PanelModel, updated: LibraryElementDT
libraryPanel: toPanelModelLibraryPanel(updated),
title: panel.title,
});
panel.hasSavedPanelEditChange = true;
panel.refresh();
}