mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Fixed related host list linking
This commit is contained in:
@@ -92,7 +92,12 @@ export default ['$scope', 'ListDefinition', '$rootScope', 'GetBasePath',
|
|||||||
$state.go('inventories.edit.hosts.add');
|
$state.go('inventories.edit.hosts.add');
|
||||||
};
|
};
|
||||||
$scope.editHost = function(host){
|
$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){
|
$scope.goToInsights = function(host){
|
||||||
$state.go('inventories.edit.hosts.edit.insights', {inventory_id: host.inventory_id, host_id:host.id});
|
$state.go('inventories.edit.hosts.edit.insights', {inventory_id: host.inventory_id, host_id:host.id});
|
||||||
|
|||||||
Reference in New Issue
Block a user