Browse Source

Fixed not proper set of timewindow for child nodes in Entities hierarchy widget

pull/15434/head
Maksym Tsymbarov 2 months ago
parent
commit
f3a1c5faab
  1. 3
      ui-ngx/src/app/modules/home/components/widget/lib/entity/entities-hierarchy-widget.component.ts

3
ui-ngx/src/app/modules/home/components/widget/lib/entity/entities-hierarchy-widget.component.ts

@ -448,6 +448,9 @@ export class EntitiesHierarchyWidgetComponent extends PageComponent implements O
const subscriptionOptions: WidgetSubscriptionOptions = {
type: widgetType.latest,
datasources: [childrenDatasource],
useDashboardTimewindow: this.ctx.widgetConfig.useDashboardTimewindow,
dashboardTimewindow: this.ctx.dashboardTimewindow,
timeWindowConfig: this.ctx.widgetConfig.useDashboardTimewindow ? this.ctx.dashboardTimewindow : this.ctx.widgetConfig.timewindow,
callbacks: {
onSubscriptionMessage: (subscription, message) => {
this.ctx.showToast(message.severity, message.message, undefined,

Loading…
Cancel
Save