@flexem/fc-gui 3.0.0-alpha.56 → 3.0.0-alpha.58

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.
@@ -41,5 +41,5 @@ export declare class GuiComponent implements OnChanges, OnDestroy {
41
41
  private onSizeChanged;
42
42
  private onResizeModeChanged;
43
43
  private onDisplayModeChanged;
44
- refreshCurrentPage(): void;
44
+ refreshCurrentPage(): boolean;
45
45
  }
@@ -193,12 +193,15 @@ let GuiComponent = class GuiComponent {
193
193
  this.globalSettings.displayMode = this.isMobileMode ? DisplayMode.Mobile : DisplayMode.Web;
194
194
  }
195
195
  refreshCurrentPage() {
196
- const viewIndex = this.host.currentViewIndex || 0;
196
+ if (this.host.currentViewIndex === undefined) {
197
+ return false;
198
+ }
197
199
  const toggleView = this.viewService.toggleViews.get(this.el);
198
200
  if (!toggleView) {
199
- return;
201
+ return false;
200
202
  }
201
- toggleView(viewIndex, this.hostContainerId, this.el).subscribe();
203
+ toggleView(this.host.currentViewIndex, this.hostContainerId, this.el).subscribe();
204
+ return true;
202
205
  }
203
206
  };
204
207
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.56",
3
+ "version": "3.0.0-alpha.58",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",