From 356769fae6ed1b5821c9004a3b556b9f15931986 Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Tue, 27 Mar 2018 13:37:48 +0200 Subject: 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) --- .../META-INF/resources/designer/scripts/DeploymentCtrl.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main') 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 3a5faf59..04ba83a7 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; } } -- cgit 1.2.3-korg