Browse Source

Fix "No data" overlay not hiding when widget data becomes available after empty state

pull/15842/head
Maksym Tsymbarov 4 months ago
committed by Vladyslav Prykhodko
parent
commit
d2beb45597
  1. 3
      ui-ngx/src/app/modules/home/components/widget/widget.component.ts

3
ui-ngx/src/app/modules/home/components/widget/widget.component.ts

@ -683,6 +683,7 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
} }
private reInitImpl() { private reInitImpl() {
this.displayNoData = false;
this.onDestroy(); this.onDestroy();
if (!this.typeParameters.useCustomDatasources) { if (!this.typeParameters.useCustomDatasources) {
this.createDefaultSubscription().subscribe({ this.createDefaultSubscription().subscribe({
@ -726,7 +727,6 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
subscriptionChanged = subscriptionChanged || subscription.onAliasesChanged(aliasIds); subscriptionChanged = subscriptionChanged || subscription.onAliasesChanged(aliasIds);
} }
if (subscriptionChanged && !this.typeParameters.useCustomDatasources) { if (subscriptionChanged && !this.typeParameters.useCustomDatasources) {
this.displayNoData = false;
this.reInit(); this.reInit();
} }
} }
@ -740,7 +740,6 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
subscriptionChanged = subscriptionChanged || subscription.onFiltersChanged(filterIds); subscriptionChanged = subscriptionChanged || subscription.onFiltersChanged(filterIds);
} }
if (subscriptionChanged && !this.typeParameters.useCustomDatasources) { if (subscriptionChanged && !this.typeParameters.useCustomDatasources) {
this.displayNoData = false;
this.reInit(); this.reInit();
} }
} }

Loading…
Cancel
Save