]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix subvolume group edit size
authorIvo Almeida <ialmeida@redhat.com>
Thu, 21 Mar 2024 16:13:48 +0000 (16:13 +0000)
committerIvo Almeida <ialmeida@redhat.com>
Fri, 22 Mar 2024 11:51:25 +0000 (11:51 +0000)
Removed the 'infinite' string which was set when no value was provided

Fixes: https://tracker.ceph.com/issues/65049
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
(cherry picked from commit a19f2b6e3c4b51b605be1b5683c0ddad2b9d959f)

src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts

index accbb61b7eeeb4ed64b4a85695a16425674ccc2b..ea677e5d68340f9624168a6d046457c0d3a999f3 100644 (file)
@@ -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