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) { .success(function(data) {
var inventory_id = data.id; var inventory_id = data.id;
Wait('stop'); Wait('stop');
$location.path('/inventories/' + inventory_id); $state.go('inventories.edit', {inventory_id: inventory_id});
}) })
.error(function(data, status) { .error(function(data, status) {
ProcessErrors($scope, data, status, form, { ProcessErrors($scope, data, status, form, {