1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Tell the breadcrumb directive to ignore this scope as well

This commit is contained in:
Michael Abashian 2016-06-30 10:07:35 -04:00
parent 8fd209c1e7
commit 1d5cceda08

View File

@ -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);