Navigate the user to the inventory edit form after creating basic inventory

This commit is contained in:
Michael Abashian 2017-04-19 10:04:17 -04:00 committed by Jared Tabor
parent 8173ec4014
commit ad494bbb40

View File

@ -77,7 +77,7 @@ function InventoriesAdd($scope, $location,
.success(function(data) {
var inventory_id = data.id;
Wait('stop');
$location.path('/inventories/' + inventory_id);
$state.go('inventories.edit', {inventory_id: inventory_id});
})
.error(function(data, status) {
ProcessErrors($scope, data, status, form, {