summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/inputs.ts
diff options
context:
space:
mode:
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;