diff options
author | aribeiro <anderson.ribeiro@est.tech> | 2021-10-15 13:41:39 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2021-10-19 13:53:09 +0000 |
commit | cef866edcf8a14ede6762297dd9ab04b1f3d0375 (patch) | |
tree | d6ce40b7f5924f3c3cddf3bf10acdb789ff58ea3 /catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts | |
parent | 5a59bf1544c7c9d1eee0cdddcbedc8c0d1d1bb8c (diff) |
Support get_input for complex data types
Issue-ID: SDC-3760
Signed-off-by: aribeiro <anderson.ribeiro@est.tech>
Change-Id: I68ceaa47012186533a90f06c2688454f5dde799b
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts index 8e483ea5ef..09fd888755 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts @@ -527,7 +527,9 @@ export class PropertiesAssignmentComponent { propertyInputDetail.inputName = selectInputValue.name; propertyInputDetail.inputType = selectInputValue.type; property.getInputValues.push(propertyInputDetail); - property.value = '{"get_input":"' + selectInputValue.name + '"}'; + property.value = selectInputValue.name.indexOf("->") !== -1 + ? '{"get_input":[' + selectInputValue.name.replace("->", ", ") + ']}' + : '{"get_input":"' + selectInputValue.name+ '"}' ; property.toscaGetFunctionType = ToscaGetFunctionType.GET_INPUT; this.updateInstancePropertiesWithInput(checkedProperties, selectedInstanceData); modal.instance.close(); |