import { forkJoin, Observable, of } from 'rxjs';
import { catchError, debounceTime, distinctUntilChanged, map, mergeMap } from 'rxjs/operators';
-import { SUPPORTED_FSAL } from '~/app/ceph/nfs/models/nfs.fsal';
+import { RGW_USER_EXPORT_PATH, SUPPORTED_FSAL } from '~/app/ceph/nfs/models/nfs.fsal';
import { Directory, NfsService } from '~/app/shared/api/nfs.service';
import { RgwBucketService } from '~/app/shared/api/rgw-bucket.service';
import { RgwSiteService } from '~/app/shared/api/rgw-site.service';
if (requestModel.rgw_export_type === 'bucket') {
delete requestModel.fsal.user_id;
} else {
- requestModel.path = '';
+ requestModel.path = RGW_USER_EXPORT_PATH;
}
} else {
delete requestModel.fsal.user_id;
import { TaskListService } from '~/app/shared/services/task-list.service';
import { TaskWrapperService } from '~/app/shared/services/task-wrapper.service';
import { getFsalFromRoute, getPathfromFsal } from '../utils';
-import { SUPPORTED_FSAL } from '../models/nfs.fsal';
+import { RGW_USER_EXPORT_PATH, SUPPORTED_FSAL } from '../models/nfs.fsal';
import { ModalCdsService } from '~/app/shared/services/modal-cds.service';
import { DeletionImpact } from '~/app/shared/enum/delete-confirmation-modal-impact.enum';
`/${prefix}/nfs/edit/${getNfsUri()}`,
{
rgw_export_type:
- this.fsal === SUPPORTED_FSAL.RGW && !_.isEmpty(this.selection?.first()?.path)
+ this.fsal === SUPPORTED_FSAL.RGW &&
+ !_.isEmpty(this.selection?.first()?.path) &&
+ this.selection?.first()?.path !== RGW_USER_EXPORT_PATH
? RgwExportType.BUCKET
: RgwExportType.USER
}