diff options
author | 2019-11-27 14:25:54 +0200 | |
---|---|---|
committer | 2019-11-28 09:04:41 +0200 | |
commit | d366b643176e92a701107e81a2fe8839ec2b6d32 (patch) | |
tree | 2fef5b53aaeffeee108b6ef21df745add8cd63ba /vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts | |
parent | dca4dd56b599c7ae44f8f256bd8ca8e8e05895f2 (diff) |
update supplementaryFileContent at onSubmit of VfModule upgrade
Issue-ID: VID-603
Change-Id: I7fac657454de7a6d3674708c956eb099c11ad2ea
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts')
-rw-r--r-- | vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts b/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts index 576e63df5..01026867e 100644 --- a/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts +++ b/vid-webpack-master/src/app/shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service.ts @@ -40,12 +40,16 @@ export class VfModuleUpgradePopupService extends VfModulePopupServiceBase { getDynamicInputs = () => null; - getControls = (): FormControlModel[] => { - return [ + getControls(serviceId: string, vnfStoreKey: string, vfModuleStoreKey: string, isUpdateMode: boolean) { + let result: FormControlModel[] =[ this.getRetainAssignmentsControl(), this.getRetainVolumeGroupsControl(), this._basicControlGenerator.getSDNCControl(null) - ] + ]; + + const vfModuleInstance = this._vfModuleControlGenerator.getVfModuleInstance(serviceId, vnfStoreKey, this.uuidData, isUpdateMode); + result = this._basicControlGenerator.concatSupplementaryFile(result, vfModuleInstance); + return result; }; getTitle = (): string => 'Upgrade Module'; @@ -57,6 +61,8 @@ export class VfModuleUpgradePopupService extends VfModulePopupServiceBase { const modelName = node.data.modelName; const dynamicModelName = node.data.dynamicModelName; + this.updateFormValueWithSupplementaryFile(form, that); + this._store.dispatch(upgradeVFModule(modelName, vnfStoreKey, serviceInstanceId, dynamicModelName)); this._store.dispatch(mergeObjectByPathAction(['serviceInstance', serviceInstanceId, 'vnfs', vnfStoreKey, 'vfModules', modelName, dynamicModelName], form.value)); this._sharedTreeService.upgradeBottomUp(node, serviceInstanceId); |