]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix subvolume group edit 55642/head
authorIvo Almeida <ialmeida@redhat.com>
Mon, 19 Feb 2024 12:42:34 +0000 (12:42 +0000)
committerIvo Almeida <ialmeida@redhat.com>
Mon, 19 Feb 2024 12:57:04 +0000 (12:57 +0000)
Fixes: https://tracker.ceph.com/issues/64487
Signed-off-by: Ivo Almeida <ialmeida@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-subvolumegroup-form/cephfs-subvolumegroup-form.component.ts

index 58bb86021bdb7d5c789667219d4ac851c281d64e..bd91014a0e6a61ff05f33a63b5799db53b780d8d 100644 (file)
                                    inputField="mode"
                                    [isTableForOctalMode]="true"
                                    [initialValue]="initialMode"
-                                   [scopes]="scopes"
-                                   [isDisabled]="isEdit"></cd-checked-table-form>
+                                   [scopes]="scopes"></cd-checked-table-form>
           </div>
         </div>
       </div>
index 8ecf1eafa8c9f54dd8f1e32924072c91a0908bce..accbb61b7eeeb4ed64b4a85695a16425674ccc2b 100644 (file)
@@ -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({