commit | c97bae74316ddae5121dc361a7631a8cdaa335b0 | [log] [tgz] |
---|---|---|
author | Arielk <Ariel.Kenan@amdocs.com> | Sun Dec 02 17:05:09 2018 +0200 |
committer | Einav Keidar <einavw@amdocs.com> | Mon Dec 03 09:02:30 2018 +0000 |
tree | 51be281677b9e885ae97a01b7b32bb4cd54ca51d | |
parent | fb81b5b97b8375ed406e191039a95be9df43445f [diff] |
complex types selectable in Operation params Change-Id: I4ea366e1a9aff6bd0e3b707a292776bfb48b809f Issue-ID: SDC-1968 Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts index e27c783..a304f1a 100644 --- a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts +++ b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/operation-creator.component.ts
@@ -251,11 +251,15 @@ let valid = true; if (this.currentTab === this.TYPE_INPUT) { _.forEach(this.inputParameters, param => { - if (!param.name || !param.property) valid = false; + if (!param.name || !param.property) { + valid = false; + } }); } else { _.forEach(this.outputParameters, param => { - if (!param.name || !param.type) valid = false; + if (!param.name || !param.type) { + valid = false; + } }); } return valid;
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts index 9bedfa7..a12425d 100644 --- a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts +++ b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
@@ -50,9 +50,8 @@ _.toArray(dataTypes), (type: any) => type.name === prop.type ); - if (!type.properties) { - flattenedProps.push(prop); - } else { + flattenedProps.push(prop); + if (type.properties) { _.forEach(type.properties, subType => { if (this.isTypePrimitive(subType.type)) { flattenedProps.push({