summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/interfaceOperation.ts
diff options
context:
space:
mode:
authorstasys10 <stasys.jurgaitis@est.tech>2022-04-21 18:13:16 +0100
committerMichael Morris <michael.morris@est.tech>2022-06-13 15:15:59 +0000
commit1a1676fbf411f3cc675752828724a6a95d7e5971 (patch)
treeb89c22eab20ee4fde15a827fdc267d242419aed9 /catalog-ui/src/app/models/interfaceOperation.ts
parent175ed7819a1647d87d847add71da4d5cf47a02fc (diff)
Rearrange Interface Operation Implementation
Name and File fields now called Artifact File URI. Add Artifact To Implementation renamed to Add Artifact Details, it was also added to localization. Artifact File URI is made always visible, and Add Artifact Details moved underneath it. Issue-ID: SDC-3982 Signed-off-by: stasys10 <stasys.jurgaitis@est.tech> Change-Id: I4cbe864347d156137a2ab4746500e5fd454a2b26
Diffstat (limited to 'catalog-ui/src/app/models/interfaceOperation.ts')
-rw-r--r--catalog-ui/src/app/models/interfaceOperation.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/catalog-ui/src/app/models/interfaceOperation.ts b/catalog-ui/src/app/models/interfaceOperation.ts
index 0768054df3..98a60405c2 100644
--- a/catalog-ui/src/app/models/interfaceOperation.ts
+++ b/catalog-ui/src/app/models/interfaceOperation.ts
@@ -123,8 +123,18 @@ export class InterfaceOperationModel extends BEInterfaceOperationModel {
this.description = operation.description;
this.operationType = operation.operationType;
this.uniqueId = operation.uniqueId;
- this.inputParams = operation.inputParams;
- this.implementation = operation.implementation;
+ if (operation.inputParams && operation.inputParams.listToscaDataDefinition) {
+ const listToscaDataDefinition: InputOperationParameter[] = [];
+ operation.inputParams.listToscaDataDefinition.forEach(inputOperation => {
+ listToscaDataDefinition.push(new InputOperationParameter(inputOperation));
+ });
+ this.inputParams = <IOperationParamsList> {
+ 'listToscaDataDefinition': listToscaDataDefinition
+ };
+ }
+ if (operation.implementation) {
+ this.implementation = new ArtifactModel(operation.implementation);
+ }
}
}