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:
parent
8fd209c1e7
commit
1d5cceda08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user