@c8y/ngx-components 1024.15.7 → 1024.15.13

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.
@@ -414,6 +414,7 @@ class ContextDashboardService {
414
414
  (context?.contextData?.id && dashboardType === ContextDashboardType.Named)
415
415
  ? await this.inventory.childAdditionsCreate(dashboard, context?.contextData.id || '')
416
416
  : await this.inventory.create(dashboard);
417
+ this.contextDashboardsCache = null;
417
418
  return data;
418
419
  }
419
420
  async detail(dashboardMO) {
@@ -432,6 +433,7 @@ class ContextDashboardService {
432
433
  const [, dashboardTypeFragments] = this.getDashboardFragments(dashboard, context, '', true);
433
434
  keepFragments.c8y_Global = this.shouldSetGlobal({ ...dashboard, ...dashboardTypeFragments });
434
435
  const { data } = await this.inventory.update({ ...keepFragments, ...dashboardTypeFragments });
436
+ this.contextDashboardsCache = null;
435
437
  this.cache.set(dashboard.id, data);
436
438
  return data;
437
439
  }
@@ -449,6 +451,7 @@ class ContextDashboardService {
449
451
  }), Status.DANGER, { ok: gettext('Delete'), cancel: gettext('Cancel') });
450
452
  }
451
453
  await this.inventory.delete(dashboard);
454
+ this.contextDashboardsCache = null;
452
455
  const tabToRemove = Array.from(this.tabs.state).find(tab => {
453
456
  if (typeof tab.path === 'string') {
454
457
  return tab.path.endsWith(`${this.DASHBOARD_ROUTE_PATH}/${dashboard.id}`);