From 0d29372b6b00793e0785f197be6e05aee2c92275 Mon Sep 17 00:00:00 2001 From: pujashahu Date: Mon, 27 Jul 2026 13:35:55 +0530 Subject: [PATCH] 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 --- .../nvmeof-group-form/nvmeof-group-form.component.html | 1 + .../nvmeof-group-form/nvmeof-group-form.component.ts | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) 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) { -- 2.47.3