mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Live: show popup if local changes exist (#36093)
* change tracker * not needed
This commit is contained in:
@@ -27,6 +27,8 @@ export const useDashboardSave = (dashboard: DashboardModel) => {
|
||||
useEffect(() => {
|
||||
if (state.value) {
|
||||
dashboard.version = state.value.version;
|
||||
dashboard.clearUnsavedChanges();
|
||||
|
||||
// important that these happen before location redirect below
|
||||
appEvents.publish(new DashboardSavedEvent());
|
||||
appEvents.emit(AppEvents.alertSuccess, ['Dashboard saved']);
|
||||
|
||||
Reference in New Issue
Block a user