mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
Fixed adhoc routing
This commit is contained in:
parent
e3f0246f4c
commit
700d4c3c5b
@ -179,7 +179,7 @@
|
||||
return item.name;
|
||||
}).value().join(':');
|
||||
|
||||
$state.go('^.adhoc', {pattern: pattern});
|
||||
$state.go('inventories.edit.adhoc', {pattern: pattern});
|
||||
};
|
||||
|
||||
}];
|
||||
|
@ -154,7 +154,7 @@
|
||||
return item.name;
|
||||
}).value().join(':');
|
||||
|
||||
$state.go('^.^.^.adhoc', {pattern: pattern});
|
||||
$state.go('inventories.edit.adhoc', {pattern: pattern});
|
||||
};
|
||||
|
||||
}];
|
||||
|
@ -168,6 +168,6 @@ export default ['$scope', 'NestedHostsListDefinition', '$rootScope', 'GetBasePat
|
||||
return item.name;
|
||||
}).value().join(':');
|
||||
|
||||
$state.go('^.^.^.adhoc', {pattern: pattern});
|
||||
$state.go('inventories.edit.adhoc', {pattern: pattern});
|
||||
};
|
||||
}];
|
||||
|
@ -160,6 +160,11 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
|
||||
return item.name;
|
||||
}).value().join(':');
|
||||
|
||||
$state.go('^.adhoc', {pattern: pattern});
|
||||
if($state.includes('inventories.edit')) {
|
||||
$state.go('inventories.edit.adhoc', {pattern: pattern});
|
||||
}
|
||||
else if($state.includes('inventories.editSmartInventory')) {
|
||||
$state.go('inventories.editSmartInventory.adhoc', {pattern: pattern});
|
||||
}
|
||||
};
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user