Merge pull request #33 from marshmalien/ux/fix/inventory-scripts

Close Inventory Scripts add/edit form on save
This commit is contained in:
Marliana Lara 2017-07-25 09:19:39 -04:00 committed by GitHub
commit 808a4fc2da
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {