@c8y/ngx-components 1017.0.366 → 1017.0.369
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/core/tabs/tab.model.d.ts +5 -0
- package/core/tabs/tabs-outlet.component.d.ts +1 -1
- package/esm2020/context-dashboard/add-dashboard.factory.mjs +3 -2
- package/esm2020/context-dashboard/context-dashboard.service.mjs +7 -1
- package/esm2020/core/tabs/tab.model.mjs +1 -1
- package/esm2020/core/tabs/tabs-outlet.component.mjs +2 -2
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs +8 -1
- package/fesm2015/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2015/c8y-ngx-components.mjs +1 -1
- package/fesm2015/c8y-ngx-components.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs +8 -1
- package/fesm2020/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2020/c8y-ngx-components.mjs +1 -1
- package/fesm2020/c8y-ngx-components.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -258,6 +258,12 @@ class ContextDashboardService {
|
|
|
258
258
|
relativeTo: getActivatedRoute(this.router)
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
+
else if (/^\/(device|group)\/[0-9]+$/.test(this.router.url)) {
|
|
262
|
+
// in case the add dashboard button is the only tab on that route
|
|
263
|
+
this.router.navigate(['.', this.DASHBOARD_ROUTE_PATH, dashboardMO.id], {
|
|
264
|
+
relativeTo: getActivatedRoute(this.router)
|
|
265
|
+
});
|
|
266
|
+
}
|
|
261
267
|
else {
|
|
262
268
|
this.router.navigate(['..', this.DASHBOARD_ROUTE_PATH, dashboardMO.id], {
|
|
263
269
|
relativeTo: getActivatedRoute(this.router)
|
|
@@ -870,7 +876,8 @@ class AddDashboardFactory {
|
|
|
870
876
|
return [
|
|
871
877
|
{
|
|
872
878
|
component: AddDashboardComponent,
|
|
873
|
-
priority: -Infinity
|
|
879
|
+
priority: -Infinity,
|
|
880
|
+
showAlways: true
|
|
874
881
|
}
|
|
875
882
|
];
|
|
876
883
|
}
|