Close Inventory Scripts add/edit form on save

This commit is contained in:
Marliana Lara 2017-07-24 16:56:25 -04:00
parent 6b6b4de205
commit 2db8b3208b
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) {