|
|
|
@ -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 { |
|
|
|
|