Browse Source

UI: fix saving dashboard timewindow configuration

pull/11587/head
Chantsova Ekaterina 2 years ago
parent
commit
c5104711bb
  1. 3
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

3
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

@ -1166,8 +1166,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;
} }
} }
} }
@ -1214,6 +1212,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…
Cancel
Save