diff options
author | brunomilitzer <bruno.militzer@est.tech> | 2022-05-05 14:19:39 +0100 |
---|---|---|
committer | brunomilitzer <bruno.militzer@est.tech> | 2022-05-05 14:19:43 +0100 |
commit | 777d1457e6f24ef187612d0150a5415002550cee (patch) | |
tree | c807c972826576726f0c24a8bdd2850977d3b319 /gui-clamp/ui-react/src/components/dialogs/ACM/utils | |
parent | 2fc78d7979c470c670e4caa154e3ec40fd47c73c (diff) |
Added Edit Button Functionality
Issue-ID: POLICY-4094
Change-Id: I7e83e1c194272f274f351bc1ee34761fcc7353a4
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 | 5 |
1 files changed, 3 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 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]; |