intelica-library-components 1.1.161 → 1.1.163

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.
@@ -6285,6 +6285,7 @@ class DashboardQsInteractiveComponent {
6285
6285
  isLoadingChange = output();
6286
6286
  viewReady = signal(false, ...(ngDevMode ? [{ debugName: "viewReady" }] : []));
6287
6287
  dashboardRef = null;
6288
+ lastEmbeddedId = undefined;
6288
6289
  constructor() {
6289
6290
  effect(() => {
6290
6291
  this.isLoadingChange.emit(this.isLoading());
@@ -6293,13 +6294,18 @@ class DashboardQsInteractiveComponent {
6293
6294
  const id = this.dashboardId();
6294
6295
  if (!this.viewReady() || !id)
6295
6296
  return;
6297
+ if (id === this.lastEmbeddedId)
6298
+ return;
6299
+ this.lastEmbeddedId = id;
6296
6300
  this.firstEmbed(id);
6297
6301
  });
6298
6302
  effect(() => {
6299
6303
  const params = this.parameters();
6300
6304
  if (!this.dashboardRef || !params)
6301
6305
  return;
6302
- this.sharedService.setDashboardParameters(this.dashboardRef, params);
6306
+ this.isLoading.set(true);
6307
+ this.sharedService.setDashboardParameters(this.dashboardRef, params)
6308
+ .finally(() => this.isLoading.set(false));
6303
6309
  });
6304
6310
  }
6305
6311
  ngAfterViewInit() {