From: Ivo Almeida Date: Thu, 21 Mar 2024 16:13:48 +0000 (+0000) Subject: mgr/dashboard: fix subvolume group edit size X-Git-Tag: testing/wip-pdonnell-testing-20240430.123648-reef-debug~113^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=723ea4a93c4143f2fa41f72be1b1210937431537;p=ceph-ci.git mgr/dashboard: fix subvolume group edit size Removed the 'infinite' string which was set when no value was provided Fixes: https://tracker.ceph.com/issues/65049 Signed-off-by: Ivo Almeida (cherry picked from commit a19f2b6e3c4b51b605be1b5683c0ddad2b9d959f) --- 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 accbb61b7ee..ea677e5d683 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 @@ -146,7 +146,6 @@ export class CephfsSubvolumegroupFormComponent extends CdForm implements OnInit const gid = this.subvolumegroupForm.getValue('gid'); const mode = this.formatter.toOctalPermission(this.subvolumegroupForm.getValue('mode')); if (this.isEdit) { - const editSize = size === 0 ? 'infinite' : size; this.taskWrapper .wrapTaskAroundCall({ task: new FinishedTask('cephfs/subvolume/group/' + URLVerbs.EDIT, { @@ -156,7 +155,7 @@ export class CephfsSubvolumegroupFormComponent extends CdForm implements OnInit this.fsName, subvolumegroupName, pool, - String(editSize), + String(size), uid, gid, mode