@smartbit4all/ng-client 1.1.23 → 1.1.24

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.
@@ -2177,6 +2177,8 @@ class SmartViewContextService {
2177
2177
  }
2178
2178
  clearSessionStorage() {
2179
2179
  sessionStorage.clear();
2180
+ this.openedViewData = [];
2181
+ this.openedViewUuids = [];
2180
2182
  }
2181
2183
  setTabId(tabId) {
2182
2184
  sessionStorage.setItem(this.tabIdName, tabId);
@@ -2266,7 +2268,7 @@ class SmartViewContextService {
2266
2268
  uuid: this.viewContext?.uuid,
2267
2269
  });
2268
2270
  }
2269
- closeView(view, keepInSession) {
2271
+ closeView(view) {
2270
2272
  let viewHandler = this.viewHandlers.find((handler) => handler.name === view.viewName);
2271
2273
  if (!viewHandler) {
2272
2274
  throw new Error(`SmartViewHandlerModel was not found by view name: ${view.viewName}`);
@@ -2294,9 +2296,7 @@ class SmartViewContextService {
2294
2296
  if (index >= 0) {
2295
2297
  this.openedViewUuids.splice(index, 1);
2296
2298
  this.openedViewData.splice(index, 1);
2297
- if (!keepInSession) {
2298
- sessionStorage.removeItem(view.viewName);
2299
- }
2299
+ sessionStorage.removeItem(view.viewName);
2300
2300
  }
2301
2301
  this.updateViewContext({
2302
2302
  updates: [
@@ -2323,7 +2323,7 @@ class SmartViewContextService {
2323
2323
  this.openView(view);
2324
2324
  break;
2325
2325
  case ViewState.ToClose:
2326
- this.closeView(view, false);
2326
+ this.closeView(view);
2327
2327
  break;
2328
2328
  }
2329
2329
  });
@@ -2332,7 +2332,7 @@ class SmartViewContextService {
2332
2332
  .includes(viewData.uuid));
2333
2333
  if (viewDataToClose?.length) {
2334
2334
  viewDataToClose.map((viewData) => {
2335
- this.closeView(viewData, true);
2335
+ this.closeView(viewData);
2336
2336
  });
2337
2337
  }
2338
2338
  this.viewContextHasBeenSynced.next();