mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Close Inventory Scripts add/edit form on save
This commit is contained in:
parent
6b6b4de205
commit
2db8b3208b
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user