1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

Merge pull request #159 from mabashian/7371-adhoc-add-host

Fixed adhoc routing
This commit is contained in:
Michael Abashian 2017-08-03 09:37:20 -04:00 committed by GitHub
commit f3fc0965fd
4 changed files with 9 additions and 4 deletions

View File

@ -179,7 +179,7 @@
return item.name;
}).value().join(':');
$state.go('^.adhoc', {pattern: pattern});
$state.go('inventories.edit.adhoc', {pattern: pattern});
};
}];

View File

@ -154,7 +154,7 @@
return item.name;
}).value().join(':');
$state.go('^.^.^.adhoc', {pattern: pattern});
$state.go('inventories.edit.adhoc', {pattern: pattern});
};
}];

View File

@ -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});
};
}];

View File

@ -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});
}
};
}];