Commit cc7bd63b62de36886955ebf2aee52dd56de424a1

Authored by deaflynx
1 parent 5d385809

Fixed edge dashboards breadcrumb

... ... @@ -142,7 +142,29 @@ export default function DashboardRoutes($stateProvider) {
142 142 pageTitle: 'edge.dashboards'
143 143 },
144 144 ncyBreadcrumb: {
145   - label: '{"icon": "dashboard", "label": "{{ vm.edgeDashboardsTitle }}", "translate": "false"}'
  145 + label: '{"icon": "dashboard", "label": "edge.dashboards"}'
  146 + }
  147 + })
  148 + .state('home.edges.dashboards.dashboard', {
  149 + url: '/:dashboardId?state',
  150 + reloadOnSearch: false,
  151 + module: 'private',
  152 + auth: ['TENANT_ADMIN', 'CUSTOMER_USER'],
  153 + views: {
  154 + "content@home": {
  155 + templateUrl: dashboardTemplate,
  156 + controller: 'DashboardController',
  157 + controllerAs: 'vm'
  158 + }
  159 + },
  160 + data: {
  161 + widgetEditMode: false,
  162 + searchEnabled: false,
  163 + pageTitle: 'dashboard.dashboard',
  164 + dashboardsType: 'edge',
  165 + },
  166 + ncyBreadcrumb: {
  167 + label: '{"icon": "dashboard", "label": "{{ vm.dashboard.title }}", "translate": "false"}'
146 168 }
147 169 })
148 170 }
... ...
... ... @@ -674,6 +674,11 @@ export function DashboardsController(userService, dashboardService, customerServ
674 674 customerId: customerId,
675 675 dashboardId: dashboard.id.id
676 676 });
  677 + } else if (vm.dashboardsScope === 'edge') {
  678 + $state.go('home.edges.dashboards.dashboard', {
  679 + edgeId: edgeId,
  680 + dashboardId: dashboard.id.id
  681 + });
677 682 } else {
678 683 $state.go('home.dashboards.dashboard', {dashboardId: dashboard.id.id});
679 684 }
... ...