Browse Source

Merge 793a706d2a into be3207ab65

pull/15187/merge
Maksym Tsymbarov 3 days ago
committed by GitHub
parent
commit
2bc2c17b57
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 9
      ui-ngx/src/app/modules/home/components/widget/widget.component.ts

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

@ -571,6 +571,7 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
this.cafs.init = this.raf.raf(() => {
try {
if (this.displayWidgetInstance()) {
this.displayNoData = false;
this.widgetTypeInstance.onInit();
this.widgetInstanceInited = true;
if (this.dataUpdatePending) {
@ -931,6 +932,10 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
onDataUpdated: () => {
try {
if (this.displayWidgetInstance()) {
if (this.displayNoData) {
this.displayNoData = false;
this.detectChanges();
}
if (this.widgetInstanceInited) {
this.widgetTypeInstance.onDataUpdated();
setTimeout(() => {
@ -945,6 +950,10 @@ export class WidgetComponent extends PageComponent implements OnInit, OnChanges,
onLatestDataUpdated: () => {
try {
if (this.displayWidgetInstance()) {
if (this.displayNoData) {
this.displayNoData = false;
this.detectChanges();
}
if (this.widgetInstanceInited) {
this.widgetTypeInstance.onLatestDataUpdated();
} else {

Loading…
Cancel
Save