@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.
@@ -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
  }