From da277be3065442ee00f371b5069fc58e6df044d4 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Thu, 22 Aug 2024 16:31:26 +0300 Subject: [PATCH 1/2] Fixed issue with not saving Widget on Widget editing --- .../home/components/dashboard-page/dashboard-page.component.ts | 1 + 1 file changed, 1 insertion(+) 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 5af1833794..209b3c1846 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 @@ -1229,6 +1229,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC } else { this.dashboard = dashboard; this.setEditMode(false, false); + this.dashboardConfiguration = this.dashboard.configuration; } }); } From 7bf79cfe3dee2298a6b6ccb14d36c245761d15f7 Mon Sep 17 00:00:00 2001 From: mpetrov Date: Thu, 22 Aug 2024 16:47:54 +0300 Subject: [PATCH 2/2] changed approach to dashboard version change --- .../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 209b3c1846..0d379b1623 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 @@ -1227,9 +1227,8 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC }; this.init(dashboardPageInitData); } else { - this.dashboard = dashboard; + this.dashboard.version = dashboard.version; this.setEditMode(false, false); - this.dashboardConfiguration = this.dashboard.configuration; } }); }