@schneideress/dashboardframework 0.0.268 → 0.0.269

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -667,6 +667,9 @@ var RADashboardArea = /** @class */ (function () {
667
667
  if (lst.length == 0) {
668
668
  this.startLoadWidgetData(this.widgetList);
669
669
  }
670
+ if (widget.dataTriggered) {
671
+ this.loadWidgetData(widget);
672
+ }
670
673
  };
671
674
  RADashboardArea.prototype.startLoadWidgetData = function (lst) {
672
675
  if (lst) {
@@ -680,24 +683,26 @@ var RADashboardArea = /** @class */ (function () {
680
683
  }
681
684
  };
682
685
  RADashboardArea.prototype.loadWidgetData = function (widget) {
683
- var _this = this;
684
686
  widget.dataTriggered = true;
685
687
  if (widget.widgetLoaded) {
686
- setTimeout(function () {
687
- widget.canLoadData = true;
688
- });
688
+ widget.canLoadData = true;
689
689
  }
690
- else
691
- setTimeout(function () {
692
- _this.loadWidgetData(widget);
693
- }, 1000);
694
690
  };
695
691
  RADashboardArea.prototype.dataLoaded = function () {
692
+ var _this = this;
693
+ var _loop_1 = function (i) {
694
+ if (!this_1.widgetList[i].dataTriggered) {
695
+ setTimeout(function () {
696
+ _this.loadWidgetData(_this.widgetList[i]);
697
+ });
698
+ return "break";
699
+ }
700
+ };
701
+ var this_1 = this;
696
702
  for (var i = 0; i < this.widgetList.length; i++) {
697
- if (!this.widgetList[i].dataTriggered) {
698
- this.loadWidgetData(this.widgetList[i]);
703
+ var state_1 = _loop_1(i);
704
+ if (state_1 === "break")
699
705
  break;
700
- }
701
706
  }
702
707
  };
703
708
  /** To set Area(Gridster) height dynamically as widgets are added/removed */