mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Merge pull request #33 from marshmalien/ux/fix/inventory-scripts
Close Inventory Scripts add/edit form on save
This commit is contained in:
commit
808a4fc2da
@ -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