summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-11-26 08:50:23 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-26 08:50:23 +0000
commita6b33add4f81a2c70aaf6172dd7184eeb8fb323d (patch)
tree864aba1458ff86f208e5566df7ad62f76e2ddac1 /vid-webpack-master/src/app/shared/components/genericForm/formControlsServices/basic.control.generator.ts
parentc01c192ef8d52a6c228f7cb261620890f5c3319d (diff)
parent358dda975be66999db4abbe185e348763cdb24f9 (diff)
Merge "Extract concatSupplementaryFile out of VFM controller"
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.ts5
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,