From aad2c86752fca9ffb3ecd699f3667be70cc95569 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Mon, 21 Dec 2015 10:43:41 -0500 Subject: [PATCH] Added first breadcrumb, the DASHBOARD breadcrumb --- awx/ui/client/src/app.js | 21 +++++++++++-------- .../src/bread-crumb/bread-crumb.partial.html | 1 + 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index 896a9eb211..71a00f4135 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -774,15 +774,18 @@ var tower = angular.module('Tower', [ state('dashboard', { url: '/home', templateUrl: urlPrefix + 'partials/home.html', - controller: Home - // resolve: { - // graphData: ['$q', 'jobStatusGraphData', 'FeaturesService', function($q, jobStatusGraphData, FeaturesService) { - // return $q.all({ - // jobStatus: jobStatusGraphData.get("month", "all"), - // features: FeaturesService.get() - // }); - // }] - // } + controller: Home, + ncyBreadcrumb: { + label: "DASHBOARD" + }, + resolve: { + graphData: ['$q', 'jobStatusGraphData', 'FeaturesService', function($q, jobStatusGraphData, FeaturesService) { + return $q.all({ + jobStatus: jobStatusGraphData.get("month", "all"), + features: FeaturesService.get() + }); + }] + } }). state('dashboardGroups', { diff --git a/awx/ui/client/src/bread-crumb/bread-crumb.partial.html b/awx/ui/client/src/bread-crumb/bread-crumb.partial.html index f49d02393a..7a91909d1c 100644 --- a/awx/ui/client/src/bread-crumb/bread-crumb.partial.html +++ b/awx/ui/client/src/bread-crumb/bread-crumb.partial.html @@ -1,4 +1,5 @@