From 9270eb904978ca34484ef0d08aa9fbaf8e507eed Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 31 Jul 2014 14:45:43 -0400 Subject: [PATCH] Inventory breadcrumb Inventory name is now clickable, navigating back to the top of the tree. 'All' has been removed. --- awx/ui/static/js/controllers/Inventories.js | 9 ++++++--- awx/ui/static/partials/inventory-edit.html | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/awx/ui/static/js/controllers/Inventories.js b/awx/ui/static/js/controllers/Inventories.js index e358e0567f..1f6f7936e6 100644 --- a/awx/ui/static/js/controllers/Inventories.js +++ b/awx/ui/static/js/controllers/Inventories.js @@ -501,7 +501,7 @@ function InventoriesEdit ($log, $scope, $location, $routeParams, $compile, Gener ClearScope(); $scope.group_breadcrumbs = [{ - name: 'All', + name: '', id: 0, description: '', show: true, @@ -512,6 +512,8 @@ function InventoriesEdit ($log, $scope, $location, $routeParams, $compile, Gener show_failures: false }]; + /**/ + $scope.refreshHostsOnGroupRefresh = false; $scope.selected_group_id = null; @@ -566,10 +568,11 @@ function InventoriesEdit ($log, $scope, $location, $routeParams, $compile, Gener $scope.removeInventoryLoaded = $scope.$on('InventoryLoaded', function() { var e, rows; - LoadBreadCrumbs({ + /*LoadBreadCrumbs({ path: $location.path(), title: '{{ inventory.name }}' - }); + });*/ + $scope.group_breadcrumbs[0].name = $scope.inventory.name; // Build page breadcrumbs e = angular.element(document.getElementById('breadcrumbs')); diff --git a/awx/ui/static/partials/inventory-edit.html b/awx/ui/static/partials/inventory-edit.html index e49043a892..3116445ec1 100644 --- a/awx/ui/static/partials/inventory-edit.html +++ b/awx/ui/static/partials/inventory-edit.html @@ -3,7 +3,7 @@