From 777d1457e6f24ef187612d0150a5415002550cee Mon Sep 17 00:00:00 2001 From: brunomilitzer Date: Thu, 5 May 2022 14:19:39 +0100 Subject: Added Edit Button Functionality Issue-ID: POLICY-4094 Change-Id: I7e83e1c194272f274f351bc1ee34761fcc7353a4 Signed-off-by: brunomilitzer --- .../ui-react/src/components/dialogs/ACM/utils/InstantiationUtils.js | 5 +++-- 1 file changed, 3 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 f430b32..1e33edb 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 @@ -34,7 +34,8 @@ const InstantiationUtils = { version: instance['version'], orderedState: instance['orderedState'], currentState: instance['state'], - disableDelete: instance['state'] !== 'UNINITIALISED' + disableDelete: instance['state'] !== 'UNINITIALISED', + disableEdit: instance['state'] !== 'UNINITIALISED' } parsedAcmList.push(acmObj); @@ -90,7 +91,7 @@ const InstantiationUtils = { const propValues = {}; filteredTemplateObj[key] = propertiesObj; - const jsonNodeSchemaKey = fullTemplate.topology_template.node_templates[key] + const jsonNodeSchemaKey = fullTemplate.topology_template.node_templates[key]; Object.entries(propertiesObj.properties).forEach(([pKey, pValue]) => { propValues[pKey] = jsonNodeSchemaKey.properties[pKey]; -- cgit