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
This commit is contained in:
commit
c7abccd29e
@ -94,7 +94,8 @@ export class DashboardLayoutComponent extends PageComponent implements ILayoutCo
|
||||
}
|
||||
|
||||
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) => {
|
||||
this.dashboardCtx.dashboardTimewindow = dashboardTimewindow;
|
||||
this.dashboardCtx.runChangeDetection();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user