Browse Source

UI: Add change detection when updating dashboard state to prevent rare cases when compiled template in markdown widget is not updated.

pull/13176/head
Igor Kulikov 2 years ago
parent
commit
3a73bf97ed
  1. 1
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

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

@ -1118,6 +1118,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
this.dashboardCtx.aliasController.dashboardStateChanged(); this.dashboardCtx.aliasController.dashboardStateChanged();
this.isRightLayoutOpened = openRightLayout ? true : false; this.isRightLayoutOpened = openRightLayout ? true : false;
this.updateLayouts(layoutsData); this.updateLayouts(layoutsData);
this.cd.markForCheck();
} }
setTimeout(() => { setTimeout(() => {
this.mobileService.onDashboardLoaded(this.layouts.right.show, this.isRightLayoutOpened); this.mobileService.onDashboardLoaded(this.layouts.right.show, this.isRightLayoutOpened);

Loading…
Cancel
Save