diff options
author | 2022-03-07 15:19:21 +0000 | |
---|---|---|
committer | 2022-03-07 16:12:20 +0000 | |
commit | d6094b9b8932afcb58281b170dd16d6dab845878 (patch) | |
tree | 38ca28bb7281d48700bdde00f37455a875ef0865 /gui-clamp/ui-react/src/components/dialogs/ACM/utils | |
parent | e54e656ce881207d6e0fae759dffc4f0dd38f979 (diff) |
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 <bruno.militzer@est.tech>
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ACM/utils')
-rw-r--r-- | gui-clamp/ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |