aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sliwka <wojciech.sliwka@nokia.com>2019-06-03 14:06:27 +0200
committerWojciech Sliwka <wojciech.sliwka@nokia.com>2019-06-03 14:06:27 +0200
commit18fa819e455e1314b21a5b4f5e6ef0e1b0588c9e (patch)
tree23fa83563dbe70baf36c30c64274e8a17f65357c
parentef9000f59f675f8a34e7d8afb8f4f449a1b47ac9 (diff)
Fix updateMsProperties method
Issue-ID: CLAMP-401 Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com> Change-Id: I39b17342fa37416eab0b8776a899ce8360be1818
-rw-r--r--src/main/resources/META-INF/resources/designer/scripts/propertyController.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/resources/META-INF/resources/designer/scripts/propertyController.js b/src/main/resources/META-INF/resources/designer/scripts/propertyController.js
index 994e4a765..a8aa83c06 100644
--- a/src/main/resources/META-INF/resources/designer/scripts/propertyController.js
+++ b/src/main/resources/META-INF/resources/designer/scripts/propertyController.js
@@ -22,10 +22,11 @@
*/
function updateMsProperties(type, newMsProperties) {
- var newMsProperties = JSON.parse(JSON.stringify(cl_props["microServicePolicies"]));
- for (p in newMsProperties) {
- if (newMsProperties[p]["name"] == type) {
- cl_props["microServicePolicies"][p] = newMsProperties;
+ if (newMsProperties["name"] == type) {
+ for (p in cl_props["microServicePolicies"]) {
+ if (cl_props["microServicePolicies"][p]["name"] == type) {
+ cl_props["microServicePolicies"][p] = newMsProperties;
+ }
}
}
}
@@ -126,4 +127,4 @@ function getLoopLogsArray() {
return cl_props.loopLogs;
}
-module.exports = { getOperationalPolicyProperty,getGlobalProperty,getMsProperty,getMsUI,getLastUpdatedStatus,getDeploymentID,getDeploymentStatusURL,getResourceDetailsVfProperty,getResourceDetailsVfModuleProperty }; \ No newline at end of file
+module.exports = { getOperationalPolicyProperty,getGlobalProperty,getMsProperty,getMsUI,getLastUpdatedStatus,getDeploymentID,getDeploymentStatusURL,getResourceDetailsVfProperty,getResourceDetailsVfModuleProperty };