diff options
author | 2019-11-26 10:18:03 +0200 | |
---|---|---|
committer | 2019-11-26 10:18:03 +0200 | |
commit | 358dda975be66999db4abbe185e348763cdb24f9 (patch) | |
tree | c852dea8b7829d11ffba9b6761c6dc1575c38e2d /vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts | |
parent | 3347f70dcd726595e8eef7f65fb80abf13f62845 (diff) |
Extract concatSupplementaryFile out of VFM controller
Issue-ID: VID-603
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I7522442e5ae3109ac1abeca1f82b2a980a10e30d
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts')
-rw-r--r-- | vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts b/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts index 0261a72a4..f7075e7d8 100644 --- a/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts +++ b/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts @@ -239,6 +239,11 @@ export class BasicControlGenerator { return initialInstanceName; } + concatSupplementaryFile(originalArray: FormControlModel[], vfModuleInstance): FormControlModel[] { + let suppFileInput: FileFormControl = <FileFormControl>(this.getSupplementaryFile(vfModuleInstance)); + return originalArray.concat([suppFileInput], suppFileInput.hiddenFile); + } + getSupplementaryFile(instance: any): FileFormControl { return new FileFormControl({ controlName: SUPPLEMENTARY_FILE, |