</div>
<div class="form-item"
- *ngIf="storageBackend === 'CEPH' && nfsForm.getValue('fsal').fs_name">
+ *ngIf="storageBackend === 'CEPH' && nfsForm.getValue('fsal').fs_name && !this.isEdit">
<cds-select formControlName="subvolume_group"
name="subvolume_group"
for="subvolume_group"
</div>
<div class="form-group row"
- *ngIf="storageBackend === 'CEPH' && nfsForm.getValue('fsal').fs_name">
+ *ngIf="storageBackend === 'CEPH' && nfsForm.getValue('fsal').fs_name && !this.isEdit">
<cds-select formControlName="subvolume"
name="subvolume"
for="subvolume"
}
);
this.nfsForm.get('cluster_id').disable();
+ this.nfsForm.get('fsal').disable();
this.nfsForm.get('path').disable();
- this.nfsForm.get('fsal.user_id').disable();
} else {
this.action = this.actionLabels.CREATE;
this.route.params.subscribe(
setBucket() {
this.nfsForm.get('path').enable();
this.nfsForm.get('fsal.user_id').setValue('');
- this.nfsForm.get('fsal.user_id').disable();
+ this.nfsForm.get('fsal').disable();
this.setPathValidation();
}
private buildRequest() {
const requestModel: any = _.cloneDeep(this.nfsForm.value);
-
+ requestModel.fsal = this.nfsForm.get('fsal').value;
if (this.isEdit) {
requestModel.export_id = _.parseInt(this.export_id);
+ requestModel.path = this.nfsForm.get('path').value;
if (requestModel.fsal.name === SUPPORTED_FSAL.RGW) {
requestModel.fsal.user_id = this.nfsForm.getValue('fsal').user_id;
- requestModel.path = this.nfsForm.getValue('path');
}
}