mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 05:30:18 -03:30
Close Inventory Scripts add/edit form on save
This commit is contained in:
@@ -44,7 +44,7 @@ export default ['Rest', 'Wait',
|
||||
script: $scope.script
|
||||
})
|
||||
.success(function(data) {
|
||||
$state.go('inventoryScripts.edit', { inventory_script_id: data.id }, { reload: true });
|
||||
$state.go('inventoryScripts', null, { reload: true });
|
||||
Wait('stop');
|
||||
})
|
||||
.error(function(data, status) {
|
||||
|
||||
@@ -60,7 +60,7 @@ export default ['Rest', 'Wait',
|
||||
script: $scope.script
|
||||
})
|
||||
.success(function() {
|
||||
$state.go($state.current, null, { reload: true });
|
||||
$state.go('inventoryScripts', null, { reload: true });
|
||||
Wait('stop');
|
||||
})
|
||||
.error(function(data, status) {
|
||||
|
||||
Reference in New Issue
Block a user