Browse Source
Merge pull request #11587 from ChantsovaEkaterina/bug/dashboard-save-timewindow-config
Fix saving dashboard timewindow configuration
pull/11606/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts
|
|
|
@ -1168,8 +1168,6 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC |
|
|
|
this.filtersUpdated(); |
|
|
|
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); |
|
|
|
} else { |
|
|
|
let reInitDashboard = false; |
|
|
|
this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow; |
|
|
|
this.dashboardService.saveDashboard(this.dashboard).pipe( |
|
|
|
catchError((err) => { |
|
|
|
if (err.status === HttpStatusCode.Conflict) { |
|
|
|
|