aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/api
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-03-12 19:30:22 +0100
committerS�bastien Determe <sebastien.determe@intl.att.com>2021-03-15 16:41:08 +0000
commitb8831e5199aa0fe2bb1de531069d376182b3571d (patch)
tree9a5eb6ba206300a3ec43ba099c42302ac3707010 /ui-react/src/api
parent396cb9b814626a0383ee49a928f4e534264170aa (diff)
Add refresh & update libs
Add refresh features to the policy list when changing it + update materials-Ui + update Json-editor libs to solve big lag in UI + Remove useless link in the menu + fix issue with build due to mariadb not started yet Issue-ID: POLICY-3131 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I9bcb9558f213731a4ea8e20e186fb91c9db1b6f3
Diffstat (limited to 'ui-react/src/api')
-rw-r--r--ui-react/src/api/PolicyService.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-react/src/api/PolicyService.js b/ui-react/src/api/PolicyService.js
index a9f44b2a4..855d44167 100644
--- a/ui-react/src/api/PolicyService.js
+++ b/ui-react/src/api/PolicyService.js
@@ -40,7 +40,7 @@ export default class PolicyService {
.catch(function(error) {
console.error("getPoliciesList error occurred ", error);
alert("getPoliciesList error occurred " + error);
- return "";
+ return undefined;
})
}
static createNewPolicy(policyModelType, policyModelVersion, policyName, policyVersion, policyJson) {
@@ -67,7 +67,7 @@ export default class PolicyService {
.catch(function (error) {
console.error("createNewPolicy error occurred ", error);
alert ("createNewPolicy error occurred " + error);
- return "";
+ return undefined;
});
}
static deletePolicy(policyModelType, policyModelVersion, policyName, policyVersion) {
@@ -90,7 +90,7 @@ export default class PolicyService {
.catch(function (error) {
console.error("deletePolicy error occurred ", error);
alert ("deletePolicy error occurred " + error);
- return "";
+ return undefined;
});
}
}