aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/inputs.ts
diff options
context:
space:
mode:
authorojasdubey <ojas.dubey@amdocs.com>2019-03-18 14:15:03 +0530
committerAvi Gaffa <avi.gaffa@amdocs.com>2019-03-18 11:38:42 +0000
commit4192e3caac2662624a7368252a3bc5619539caa7 (patch)
treec070e560ac56c9c246e059d4b4a510b9eec9320f /catalog-ui/src/app/models/inputs.ts
parent2ca2fc5c0da1eb862fcd79d1f9345aa89e62b396 (diff)
Service Consumption FE
Service consumption feature frontend implementation Change-Id: I68e1b507b1d4379b271fe97428ff8ae86dc11b4c Issue-ID: SDC-1990 Signed-off-by: ojasdubey <ojas.dubey@amdocs.com>
Diffstat (limited to 'catalog-ui/src/app/models/inputs.ts')
-rw-r--r--catalog-ui/src/app/models/inputs.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/inputs.ts b/catalog-ui/src/app/models/inputs.ts
index cbed226324..e5b2274835 100644
--- a/catalog-ui/src/app/models/inputs.ts
+++ b/catalog-ui/src/app/models/inputs.ts
@@ -26,6 +26,17 @@ import {PropertyModel} from "./properties";
import {InputPropertyBase} from "./input-property-base";
import {SchemaPropertyGroupModel} from "./aschema-property";
+export class InputsGroup {
+ constructor(inputsObj?:InputsGroup) {
+ _.forEach(inputsObj, (inputs:Array<InputModel>, instance) => {
+ this[instance] = [];
+ _.forEach(inputs, (input:InputModel):void => {
+ this[instance].push(new InputModel(input));
+ });
+ });
+ }
+}
+
export interface IInputModel extends InputPropertyBase {
//server data
definition:boolean;