aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts
diff options
context:
space:
mode:
authorimamSidero <imam.hussain@est.tech>2023-02-08 14:40:35 +0000
committerMichael Morris <michael.morris@est.tech>2023-02-16 09:30:47 +0000
commit2c30bf8b461108e687d874acad3b444fc732ef4c (patch)
treec829bbff40a176edb9b5afac82e256738bc8ba9a /catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.page.component.ts
parent59148be1a5a9beea5a157ace746eea3c969f5ed4 (diff)
Provide tosca function to list of map values
Providing the capability to add tosca function for list of map values Issue-ID: SDC-4379 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: Iec404ec27431eb2b5e085d3f9474e61fadab8d45
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.ts10
1 files changed, 8 insertions, 2 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 e66de41f09..7fef3532a3 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
@@ -592,8 +592,11 @@ export class PropertiesAssignmentComponent {
const parts = propertiesNameArray.split("#");
let currentKey = [];
if (this.isListOrMap(checkedInstanceProperty.type)) {
+ if (checkedInstanceProperty.schemaType == PROPERTY_TYPES.MAP) {
+ currentKey.push((<DerivedFEProperty>checkedInstanceProperty.input).parentMapKey);
+ }
currentKey.push((<DerivedFEProperty>checkedInstanceProperty.input).mapKey);
- if (this.isComplexSchemaType(checkedInstanceProperty.schemaType)) {
+ if (checkedInstanceProperty.schemaType != PROPERTY_TYPES.MAP && this.isComplexSchemaType(checkedInstanceProperty.schemaType)) {
currentKey.push(parts.reverse()[0]);
}
}
@@ -636,8 +639,11 @@ export class PropertiesAssignmentComponent {
const parts = propertiesName.split("#");
let currentKey = [];
if (this.isListOrMap(checkedProperty.type)) {
+ if (checkedProperty.schemaType == PROPERTY_TYPES.MAP) {
+ currentKey.push((<DerivedFEProperty>checkedProperty.input).parentMapKey);
+ }
currentKey.push((<DerivedFEProperty>checkedProperty.input).mapKey);
- if (this.isComplexSchemaType(checkedProperty.schemaType)) {
+ if (checkedProperty.schemaType != PROPERTY_TYPES.MAP && this.isComplexSchemaType(checkedProperty.schemaType)) {
currentKey.push(parts.reverse()[0]);
}
}