@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.
@@ -995,6 +995,7 @@
995
995
  this.translateService = translateService;
996
996
  this.ngZone = ngZone;
997
997
  this.notifier = notifier;
998
+ this.isWidgetLoaded = false;
998
999
  this.isIEOrEdge = /msie\s|trident\/|edge\//i.test(window.navigator.userAgent);
999
1000
  this.widgetDeleted = new core.EventEmitter();
1000
1001
  }
@@ -1165,6 +1166,7 @@
1165
1166
  * @return {?}
1166
1167
  */
1167
1168
  function () {
1169
+ widgetContainer.isWidgetLoaded = true;
1168
1170
  widgetConfigFilter.appConfig = _this.appConfig;
1169
1171
  widgetConfigFilter.widgetInfo = (/** @type {?} */ ({}));
1170
1172
  widgetConfigFilter.widgetInfo.widgetName = widgetInfo.widgetName;
@@ -1194,7 +1196,9 @@
1194
1196
  appConfig: this.appConfig,
1195
1197
  widgetInfo: widgetInfo
1196
1198
  }));
1197
- widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
1199
+ if (widgetContainerContext.isWidgetLoaded) {
1200
+ widgetContainerContext.widgetElement.loadContent(widgetConfigFilter);
1201
+ }
1198
1202
  };
1199
1203
  RAWidgetContainer.decorators = [
1200
1204
  { type: core.Component, args: [{