@schneideress/dashboardframework 0.0.273 → 0.0.274

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.
@@ -1002,6 +1002,7 @@
1002
1002
  var _this = this;
1003
1003
  if (this.templateConfig && this.templateConfig.initialWidgetCount)
1004
1004
  this.initialWidgetCount = this.templateConfig.initialWidgetCount;
1005
+ window.scrollTo(0, 0);
1005
1006
  if (location.href.indexOf('/kiosk/') > -1)
1006
1007
  this.initialWidgetCount = 1000;
1007
1008
  this.currentLoadedIndex = 0;
@@ -1187,7 +1188,8 @@
1187
1188
  this.ngxService.start();
1188
1189
  this.dashboardService.addWidget(data, this.appConfig).subscribe(function (widget) {
1189
1190
  _this.userWidgets.push(widget);
1190
- if (_this.currentLoadedIndex >= _this.userWidgets.length) {
1191
+ if (_this.currentLoadedIndex >= (_this.userWidgets.length - 1)) {
1192
+ _this.currentLoadedIndex++;
1191
1193
  var gridsterItem = _this.responsiveService.getGridsterItem(widget);
1192
1194
  _this.widgetList.push(gridsterItem);
1193
1195
  _this.setAreaHeight();
@@ -1241,7 +1243,8 @@
1241
1243
  });
1242
1244
  }
1243
1245
  this.userWidgets.push(data);
1244
- if (this.currentLoadedIndex >= this.userWidgets.length) {
1246
+ if (this.currentLoadedIndex >= (this.userWidgets.length - 1)) {
1247
+ this.currentLoadedIndex++;
1245
1248
  var gridsterItem = this.responsiveService.getGridsterItem(data);
1246
1249
  this.widgetList.push(gridsterItem);
1247
1250
  this.setAreaHeight();
@@ -1886,7 +1889,8 @@
1886
1889
  globalFilter: this.globalFilter,
1887
1890
  appConfig: this.appConfig,
1888
1891
  widgetInfo: widgetInfo,
1889
- configChanges: this.getConfigChanges(configChanged)
1892
+ configChanges: this.getConfigChanges(configChanged),
1893
+ dashboardInfo: this.dashboardInfo
1890
1894
  };
1891
1895
  if (!widgetContainerContext.isWidgetLoaded) return [3 /*break*/, 3];
1892
1896
  if (this.widgetElement && typeof (this.widgetElement.setConfigFilter) == 'function') {