@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.
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +3 -0
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-icon-selector.mjs +23 -11
- package/fesm2022/c8y-ngx-components-icon-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +22 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +22 -2
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/locales.pot +3 -0
- package/package.json +1 -1
- package/types/c8y-ngx-components-context-dashboard.d.ts.map +1 -1
- package/types/c8y-ngx-components-icon-selector.d.ts +7 -1
- package/types/c8y-ngx-components-icon-selector.d.ts.map +1 -1
- package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts +1 -0
- package/types/c8y-ngx-components-widgets-implementations-asset-table.d.ts.map +1 -1
- package/types/c8y-ngx-components.d.ts +9 -1
- package/types/c8y-ngx-components.d.ts.map +1 -1
|
@@ -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}`);
|