diff options
Diffstat (limited to 'ui-react/src/api/LoopCache.js')
-rw-r--r-- | ui-react/src/api/LoopCache.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui-react/src/api/LoopCache.js b/ui-react/src/api/LoopCache.js index 3ee5acc6..dd8c5b52 100644 --- a/ui-react/src/api/LoopCache.js +++ b/ui-react/src/api/LoopCache.js @@ -28,9 +28,9 @@ export default class LoopCache { this.loopJsonCache=loopJson; } - updateMicroServiceProperties(type, newMsProperties) { + updateMicroServiceProperties(name, newMsProperties) { for (var policy in this.loopJsonCache["microServicePolicies"]) { - if (this.loopJsonCache["microServicePolicies"][policy]["name"] === type) { + if (this.loopJsonCache["microServicePolicies"][policy]["name"] === name) { this.loopJsonCache["microServicePolicies"][policy]["properties"] = newMsProperties; } } @@ -51,6 +51,10 @@ export default class LoopCache { getOperationalPolicyConfigurationJson() { return this.loopJsonCache["operationalPolicies"]["0"]["configurationsJson"]; } + + getOperationalPolicyJsonSchema() { + return this.loopJsonCache["operationalPolicySchema"]; + } getOperationalPolicies() { return this.loopJsonCache["operationalPolicies"]; |