aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-03-27 13:37:48 +0200
committerDeterme, Sebastien (sd378r) <sd378r@intl.att.com>2018-03-27 13:37:48 +0200
commit356769fae6ed1b5821c9004a3b556b9f15931986 (patch)
treee2d66a481bf2d603073861a1fa30e912d44c9fc0 /src/main/resources
parent08b9492f3330e93d477a5a5a275ed44755e9f52a (diff)
Fix UI DCAE Deploy
The Json format sent in CldsModel was not correct, the correct format must be with key name and key value. Issue-ID: CLAMP-142 Change-Id: I2802112702ff2e1f149932d59109f22654c581aa Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js b/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js
index 3a5faf592..04ba83a78 100644
--- a/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js
+++ b/src/main/resources/META-INF/resources/designer/scripts/DeploymentCtrl.js
@@ -30,11 +30,11 @@ app.controller('DeploymentCtrl',
elementMap["global"] = [];
}
- var index = elementMap["global"].findIndex(function (e) { return (typeof e == "object" && !(e instanceof Array)) && "deployParameters" in e; });
- if (index == -1) {
- elementMap["global"].push({"deployParameters": parameters});
- } else {
- elementMap["global"][index]["deployParameters"] = parameters;
+ var index = elementMap["global"].findIndex(function (e) { return (typeof e == "object" && !(e instanceof Array)) && "deployParameters" == e["name"]; });
+ if (index == -1) {
+ elementMap["global"].push({"name": "deployParameters", "value": parameters});
+ } else {
+ elementMap["global"][index]["value"] = parameters;
}
}