aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts
diff options
context:
space:
mode:
authorimamSidero <imam.hussain@est.tech>2023-09-26 10:21:23 +0100
committerMichael Morris <michael.morris@est.tech>2023-10-09 07:52:27 +0000
commit8bb8f3a4a1862104efde7714f6b39402b15feecd (patch)
tree49b2e5f86965a13e3cdcafe3344eaa7c4b0831b4 /catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts
parent4f058c098678ea01f8a01250dbf9bac4b77b6744 (diff)
Allow multiple entry for map/list when tosca function is selected
Provided the capability to add multi entry for map/list values in property assignment page Issue-ID: SDC-4635 Signed-off-by: Imam hussain <imam.hussain@est.tech> Change-Id: I14b55d4fbf806206561dda77c3ffe035f349a65e
Diffstat (limited to 'catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts')
-rw-r--r--catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts b/catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts
index c4ba64a8af..9df2b2b341 100644
--- a/catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts
+++ b/catalog-ui/src/app/models/properties-inputs/derived-fe-property.ts
@@ -99,7 +99,7 @@ export class DerivedFEProperty extends PropertyBEModel {
this.toscaPath.push((Number(toscaIndex) + 1).toString());
}
} else {
- this.toscaPath.push("0");
+ this.toscaPath.push((property.valueObj.length).toString());
}
} else {
if (property instanceof PropertyFEModel && property.valueObj != '') {
@@ -111,6 +111,9 @@ export class DerivedFEProperty extends PropertyBEModel {
}
} else {
parentKey = "0";
+ if (property instanceof PropertyFEModel) {
+ parentKey = (property.flattenedChildren.length).toString();
+ }
}
this.toscaPath.push(parentKey);
}