From 1d5cceda084c406a860a54287b52d5442f4022d2 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Thu, 30 Jun 2016 10:07:35 -0400 Subject: [PATCH] Tell the breadcrumb directive to ignore this scope as well --- .../inventories/manage/breadcrumbs/breadcrumbs.controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/ui/client/src/inventories/manage/breadcrumbs/breadcrumbs.controller.js b/awx/ui/client/src/inventories/manage/breadcrumbs/breadcrumbs.controller.js index fb6b2f321a..0ace8e9dec 100644 --- a/awx/ui/client/src/inventories/manage/breadcrumbs/breadcrumbs.controller.js +++ b/awx/ui/client/src/inventories/manage/breadcrumbs/breadcrumbs.controller.js @@ -13,6 +13,11 @@ export default }); $scope.inventory = inventoryData; $scope.currentState = $state.current.name; + // The ncy breadcrumb directive will look at this attribute when attempting to bind to the correct scope. + // In this case, we don't want to incidentally bind to this scope when editing a host or a group. See: + // https://github.com/ncuillery/angular-breadcrumb/issues/42 for a little more information on the + // problem that this solves. + $scope.ncyBreadcrumbIgnore = true; // slices the group stack at $index to supply new group params to $state.go() $scope.goToGroup = function(index){ var group = $stateParams.group.slice(0, index);