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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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(); |
|
|
|