aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/api
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2021-02-12 17:18:47 +0100
committerLiam Fallon <liam.fallon@est.tech>2021-02-19 14:30:28 +0000
commitaf040a80000e4a0f1a98d251a78fc6b55aa6c1f4 (patch)
tree0e5725ca508154ed2eaeeca96139ba18daae8e64 /ui-react/src/api
parentca7106064d68a5411ec61084bdfbd7f027375f5f (diff)
Modify Backend for listing the policies
Improve Ui components to list policies + changes an existing camel route to expose the policy json schema properly. New files added to emulator for testing + comments added. Now the Ui can show the policy config Issue-ID: POLICY-3061 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: Iacf9577a4ab2cc927d05ff267e7356d8410eb77a Signed-off-by: sebdet <sebastien.determe@intl.att.com> (cherry picked from commit 3718a16bedbc4a5ecf2593abcb2075238fa99767)
Diffstat (limited to 'ui-react/src/api')
-rw-r--r--ui-react/src/api/PolicyToscaService.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-react/src/api/PolicyToscaService.js b/ui-react/src/api/PolicyToscaService.js
index a7bc140b6..351126328 100644
--- a/ui-react/src/api/PolicyToscaService.js
+++ b/ui-react/src/api/PolicyToscaService.js
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* ONAP CLAMP
* ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019, 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -69,12 +69,12 @@ export default class PolicyToscaService {
return response.json();
} else {
console.error("getToscaPolicyModel query failed");
- return "";
+ return {};
}
})
.catch(function (error) {
console.error("getToscaPolicyModel error received", error);
- return "";
+ return {};
});
}