Skip to content

Commit

Permalink
Closing modal and displaying alerts when sprints finish updating
Browse files Browse the repository at this point in the history
  • Loading branch information
rladdusaw committed Sep 14, 2020
1 parent b5d514f commit 02ba47e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/productController.js
Expand Up @@ -51,6 +51,7 @@ app.controller('ProductController', function ($controller, $scope, ApiResponseAc
$scope.resetCreateProduct();
}
});
$scope.closeModal();
};

$scope.resetCreateProduct = function () {
Expand All @@ -68,6 +69,7 @@ app.controller('ProductController', function ($controller, $scope, ApiResponseAc
$scope.productToEdit.save().then(function () {
$scope.cancelEditProduct();
});
$scope.closeModal();
};

$scope.cancelEditProduct = function () {
Expand All @@ -92,6 +94,7 @@ app.controller('ProductController', function ($controller, $scope, ApiResponseAc
$scope.cancelDeleteProduct();
}
});
$scope.closeModal();
};

$scope.openAddRemoteProjectInfo = function() {
Expand Down
2 changes: 2 additions & 0 deletions app/views/management/products.html
@@ -1,5 +1,7 @@
<div class="management-table" ng-controller="ProductController">

<alerts seconds="45" channels="products" types="SUCCESS, INVALID, ERROR"></alerts>

<button class="btn btn-default view-action-button" ng-click="openModal('#addProductModal')">Add a Product</button>
<hr />

Expand Down

0 comments on commit 02ba47e

Please sign in to comment.