From: Ivo Almeida Date: Mon, 19 Feb 2024 12:42:34 +0000 (+0000) Subject: mgr/dashboard: fix subvolume group edit X-Git-Tag: testing/wip-pdonnell-testing-20240430.123648-reef-debug~219^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=cd6881072ad05c06866c9b7f5486127c98035e40;p=ceph-ci.git mgr/dashboard: fix subvolume group edit Fixes: https://tracker.ceph.com/issues/64487 Signed-off-by: Ivo Almeida (cherry picked from commit 8aaa0bca47fa49073e797ee427bcec282ef1adbe) --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.html index 58bb86021bd..bd91014a0e6 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.html @@ -132,8 +132,7 @@ inputField="mode" [isTableForOctalMode]="true" [initialValue]="initialMode" - [scopes]="scopes" - [isDisabled]="isEdit"> + [scopes]="scopes"> diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts index 8ecf1eafa8c..accbb61b7ee 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts @@ -123,9 +123,6 @@ export class CephfsSubvolumegroupFormComponent extends CdForm implements OnInit .subscribe((resp: any) => { // Disabled these fields since its not editable this.subvolumegroupForm.get('subvolumegroupName').disable(); - this.subvolumegroupForm.get('pool').disable(); - this.subvolumegroupForm.get('uid').disable(); - this.subvolumegroupForm.get('gid').disable(); this.subvolumegroupForm.get('subvolumegroupName').setValue(this.subvolumegroupName); if (resp.bytes_quota !== 'infinite') { @@ -155,10 +152,14 @@ export class CephfsSubvolumegroupFormComponent extends CdForm implements OnInit task: new FinishedTask('cephfs/subvolume/group/' + URLVerbs.EDIT, { subvolumegroupName: subvolumegroupName }), - call: this.cephfsSubvolumeGroupService.update( + call: this.cephfsSubvolumeGroupService.create( this.fsName, subvolumegroupName, - String(editSize) + pool, + String(editSize), + uid, + gid, + mode ) }) .subscribe({