From d6094b9b8932afcb58281b170dd16d6dab845878 Mon Sep 17 00:00:00 2001 From: brunomilitzer Date: Mon, 7 Mar 2022 15:19:21 +0000 Subject: Fixed Instance Properties Name Added a input text box so the user can customize the instance name properties Issue-ID: POLICY-3978 Change-Id: I505eff37699dbe50a285ce2f153c70be246e1d8c Signed-off-by: brunomilitzer --- .../ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui-clamp/ui-react/src/components/dialogs/ACM/utils') diff --git a/gui-clamp/ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js b/gui-clamp/ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js index aaaa1bd..f430b32 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js +++ b/gui-clamp/ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js @@ -24,7 +24,6 @@ import { JSONEditor } from "@json-editor/json-editor"; const InstantiationUtils = { parseInstantiationList: (acmList) => { - console.log(acmList); const parsedAcmList = []; acmList.map((instance, index) => { @@ -156,7 +155,7 @@ const InstantiationUtils = { }); }, - updateTemplate: (jsonEditorValues, fullTemplate) => { + updateTemplate: (instanceName, jsonEditorValues, fullTemplate) => { const nodeTemplates = fullTemplate.topology_template.node_templates; const instanceDataProperties = Object.entries(jsonEditorValues); @@ -168,6 +167,7 @@ const InstantiationUtils = { }); fullTemplate.topology_template.node_templates = nodeTemplates; + fullTemplate.name = instanceName; return fullTemplate; } -- cgit 1.2.3-korg