From c5104711bba37a628ce52ae7c63b75dd6ffcd429 Mon Sep 17 00:00:00 2001 From: Chantsova Ekaterina Date: Fri, 6 Sep 2024 16:40:43 +0300 Subject: [PATCH] UI: fix saving dashboard timewindow configuration --- .../home/components/dashboard-page/dashboard-page.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts index 84c5c752ca..349ab43c42 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts +++ b/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.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); } else { let reInitDashboard = false; + this.dashboard.configuration.timewindow = this.dashboardCtx.dashboardTimewindow; this.dashboardService.saveDashboard(this.dashboard).pipe( catchError((err) => { if (err.status === HttpStatusCode.Conflict) {