Browse Source

Merge pull request #6909 from ChantsovaEkaterina/bug/state-widget-dashboard-timewindow-binding

[3.4] UI: Fix binding to dashboard timewindow for timeseries widgets used within state widget
pull/6914/head
Igor Kulikov 4 years ago
committed by GitHub
parent
commit
c7abccd29e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui-ngx/src/app/modules/home/components/dashboard-page/layout/dashboard-layout.component.ts

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

@ -94,7 +94,8 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo
} }
ngOnInit(): void { ngOnInit(): void {
this.rxSubscriptions.push(this.dashboard.dashboardTimewindowChanged.subscribe( const dashboardTimewindowChanged = this.parentDashboard ? this.parentDashboard.dashboardTimewindowChanged : this.dashboard.dashboardTimewindowChanged;
this.rxSubscriptions.push(dashboardTimewindowChanged.subscribe(
(dashboardTimewindow) => { (dashboardTimewindow) => {
this.dashboardCtx.dashboardTimewindow = dashboardTimewindow; this.dashboardCtx.dashboardTimewindow = dashboardTimewindow;
this.dashboardCtx.runChangeDetection(); this.dashboardCtx.runChangeDetection();

Loading…
Cancel
Save