mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Fixed related host list linking
This commit is contained in:
parent
652facba9f
commit
947bdeed3e
@ -92,7 +92,12 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
|
||||
$state.go('inventories.edit.hosts.add');
|
||||
};
|
||||
$scope.editHost = function(host){
|
||||
$state.go('.edit', {inventory_id: host.inventory_id, host_id: host.id});
|
||||
if($state.includes('inventories.edit.hosts')) {
|
||||
$state.go('inventories.edit.hosts.edit', {host_id: host.id});
|
||||
}
|
||||
else if($state.includes('inventories.editSmartInventory.hosts')) {
|
||||
$state.go('inventories.editSmartInventory.hosts.edit', {host_id: host.id});
|
||||
}
|
||||
};
|
||||
$scope.goToInsights = function(host){
|
||||
$state.go('inventories.edit.hosts.edit.insights', {inventory_id: host.inventory_id, host_id:host.id});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user