getControls(serviceId: string, vnfStoreKey: string, vfModuleStoreKey: string, isUpdateMode: boolean): FormControlModel[] {
let result: FormControlModel[] =[
- this.getRetainAssignmentsControl(),
- this._sharedControllersService.getSDNCControl(null)
+ this._sharedControllersService.getSDNCControl(null, true)
];
+
const vfModuleInstance :VfModuleInstance = this._vfModuleControlGenerator.getVfModuleInstance(serviceId, vnfStoreKey, this.uuidData, isUpdateMode);
let volumeGroupAllowed = this._store.getState().service.serviceHierarchy[serviceId].vfModules[this.uuidData['modelName']].volumeGroupAllowed;
this.updateFormValueWithSupplementaryFile(form, that);
+form.value[UpgradeFormControlNames.RETAIN_ASSIGNMENTS] = false;
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);
controlName: UpgradeFormControlNames.RETAIN_VOLUME_GROUPS,
displayName: 'Retain Volume Groups',
dataTestId: UpgradeFormControlNames.RETAIN_VOLUME_GROUPS,
- value: true,
- validations: []
- })
- };
-
- getRetainAssignmentsControl = (): CheckboxFormControl => {
- return new CheckboxFormControl({
- type: FormControlType.CHECKBOX,
- controlName: UpgradeFormControlNames.RETAIN_ASSIGNMENTS,
- displayName: 'Retain Assignments',
- dataTestId: UpgradeFormControlNames.RETAIN_ASSIGNMENTS,
- value: true,
+ value: false,
validations: []
})
};