From: pujashahu Date: Mon, 27 Jul 2026 08:05:55 +0000 (+0530) Subject: mgr/dashboard : Group name should be read only when user tries to edit existing nvmeo... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F70560%2Fhead;p=ceph.git mgr/dashboard : Group name should be read only when user tries to edit existing nvmeof gateway Fixes: https://tracker-origin.ceph.com/issues/78685 Signed-off-by: pujaoshahu --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.html index df323eb4f441..5f488596d451 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.html @@ -42,6 +42,7 @@ formControlName="groupName" cdRequiredField="Gateway group name" [invalid]="groupName.isInvalid" + [readonly]="editing" /> { if (params['name']) { this.editing = true; this.gatewayGroupName = params['name']; this.action = this.actionLabels.EDIT; + this.createForm(); this.loadGatewayGroupData(params['name']); } else { this.editing = false; this.action = this.actionLabels.CREATE; + this.createForm(); } }); } @@ -109,10 +109,6 @@ export class NvmeofGroupFormComponent extends CdForm implements OnInit { encryptionConfigControl.setValue(encryptionKeyControl.value, { emitEvent: false }); } }); - - if (this.editing) { - this.groupForm.get('groupName')?.disable(); - } } loadGatewayGroupData(groupName: string) {