mirror of
https://github.com/ansible/awx.git
synced 2026-01-26 16:11:30 -03:30
Merge pull request #548 from mabashian/7752-host-list
Fixed related host list linking
This commit is contained in:
commit
7919433288
@ -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