@schneideress/dashboardframework 0.0.31 → 0.0.32

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.
@@ -961,6 +961,7 @@ var RAWidgetContainer = /** @class */ (function () {
961
961
  this.translateService = translateService;
962
962
  this.ngZone = ngZone;
963
963
  this.notifier = notifier;
964
+ this.isWidgetLoaded = false;
964
965
  this.isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
965
966
  this.widgetDeleted = new EventEmitter();
966
967
  }
@@ -1131,6 +1132,7 @@ var RAWidgetContainer = /** @class */ (function () {
1131
1132
  * @return {?}
1132
1133
  */
1133
1134
  function () {
1135
+ widgetContainer.isWidgetLoaded = true;
1134
1136
  widgetConfigFilter.appConfig = _this.appConfig;
1135
1137
  widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
1136
1138
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
@@ -1160,7 +1162,9 @@ var RAWidgetContainer = /** @class */ (function () {
1160
1162
  appConfig: this.appConfig,
1161
1163
  widgetInfo: widgetInfo
1162
1164
  }));
1163
- widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
1165
+ if (widgetContainerContext.isWidgetLoaded) {
1166
+ widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
1167
+ }
1164
1168
  };
1165
1169
  RAWidgetContainer.decorators = [
1166
1170
  { type: Component, args: [{