Merge pull request #11587 from ChantsovaEkaterina/bug/dashboard-save-timewindow-config
Fix saving dashboard timewindow configuration
This commit is contained in:
commit
64a708c796
@ -1168,8 +1168,6 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
|
|||||||
this.filtersUpdated();
|
this.filtersUpdated();
|
||||||
this.updateLayouts();
|
this.updateLayouts();
|
||||||
}
|
}
|
||||||
} else if (!this.widgetEditMode) {
|
|
||||||
this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1216,6 +1214,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
|
|||||||
this.setEditMode(false, false);
|
this.setEditMode(false, false);
|
||||||
} else {
|
} else {
|
||||||
let reInitDashboard = false;
|
let reInitDashboard = false;
|
||||||
|
this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow;
|
||||||
this.dashboardService.saveDashboard(this.dashboard).pipe(
|
this.dashboardService.saveDashboard(this.dashboard).pipe(
|
||||||
catchError((err) => {
|
catchError((err) => {
|
||||||
if (err.status === HttpStatusCode.Conflict) {
|
if (err.status === HttpStatusCode.Conflict) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user