Creating a vendor allows you to associate test results to specific vendors/products.
Created vendors are private, but vendors can be registered with the Foundation to become public and official.
This will require approval by a Foundation administrator.
@@ -58,7 +58,13 @@
+
+
+ Success:
+ Vendor successfully created.
+
+
diff --git a/refstack-ui/app/components/vendors/vendorsController.js b/refstack-ui/app/components/vendors/vendorsController.js
index d597915c..766195a4 100644
--- a/refstack-ui/app/components/vendors/vendorsController.js
+++ b/refstack-ui/app/components/vendors/vendorsController.js
@@ -141,14 +141,17 @@
* This will add a new vendor record.
*/
function addVendor() {
+ ctrl.showSuccess = false;
+ ctrl.showError = false;
var url = refstackApiUrl + '/vendors';
var data = {
name: ctrl.name,
description: ctrl.description
};
- ctrl.name = '';
- ctrl.description = '';
$http.post(url, data).success(function (data) {
+ ctrl.showSuccess = true;
+ ctrl.name = '';
+ ctrl.description = '';
ctrl.rawData = null;
ctrl.update();
}).error(function (error) {