@acorex/platform 20.9.12 → 20.9.14

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.
@@ -2101,9 +2101,17 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2101
2101
  }
2102
2102
  });
2103
2103
  this.queryParamSub = this.activeRoute.queryParamMap.subscribe(async (qp) => {
2104
- const viewFromUrl = qp.get('view');
2105
- await this.vm.setView(viewFromUrl);
2106
- this.scheduleRestoreExpandedRows();
2104
+ if (!this.initializedFromRoute) {
2105
+ return;
2106
+ }
2107
+ const { reloadList } = await this.vm.syncFromRouteQueryParams(qp);
2108
+ this.recompute();
2109
+ if (reloadList) {
2110
+ await this.reloadListData(true);
2111
+ }
2112
+ else {
2113
+ this.scheduleRestoreExpandedRows();
2114
+ }
2107
2115
  });
2108
2116
  }
2109
2117
  async ngAfterViewInit() {
@@ -2114,6 +2122,7 @@ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
2114
2122
  if (currentUrlView !== resolvedView) {
2115
2123
  this.syncListViewQueryParam(resolvedView);
2116
2124
  }
2125
+ this.vm.markRouteQueryContextSynced(this.activeRoute.snapshot.queryParamMap);
2117
2126
  this.initializedFromRoute = true;
2118
2127
  this.bindExpandedRowPersistence();
2119
2128
  this.scheduleRestoreExpandedRows();