summaryrefslogtreecommitdiffstats
path: root/ui-react/src/api/LoopCache.js
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2019-12-19 11:58:45 +0100
committerxuegao <xg353y@intl.att.com>2019-12-19 16:05:40 +0100
commitc488fed6bb0d06acad9aefda54e77c5c687eb941 (patch)
tree42bf39c00f7206e5ab609ce0ff71d40ef5994fad /ui-react/src/api/LoopCache.js
parent62a0b7ca40d7810897fce2d1f8eb47e5647a2bf2 (diff)
Update op policy UI
Change the React UI accordingly so that we read OperationalPolicy Object Issue-ID: CLAMP-583 Change-Id: Ifd14a7eb115dc75acb35f1e7591ee383066a45f1 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/api/LoopCache.js')
-rw-r--r--ui-react/src/api/LoopCache.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui-react/src/api/LoopCache.js b/ui-react/src/api/LoopCache.js
index 95eb9310e..c73ed62b5 100644
--- a/ui-react/src/api/LoopCache.js
+++ b/ui-react/src/api/LoopCache.js
@@ -53,13 +53,19 @@ export default class LoopCache {
}
getOperationalPolicyJsonSchema() {
- return this.loopJsonCache["operationalPolicySchema"];
+ return this.loopJsonCache["operationalPolicies"]["0"]["jsonRepresentation"];
}
getOperationalPolicies() {
return this.loopJsonCache["operationalPolicies"];
}
+ getOperationalPoliciesNoJsonSchema() {
+ var operationalPolicies = JSON.parse(JSON.stringify(this.loopJsonCache["operationalPolicies"]));
+ delete operationalPolicies[0]["jsonRepresentation"];
+ return operationalPolicies;
+ }
+
getGlobalProperties() {
return this.loopJsonCache["globalPropertiesJson"];
}