]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #69917 from rhcs-dashboard/edit-host-access
authorAfreen Misbah <afreen@ibm.com>
Wed, 8 Jul 2026 04:47:38 +0000 (10:17 +0530)
committerGitHub <noreply@github.com>
Wed, 8 Jul 2026 04:47:38 +0000 (10:17 +0530)
mgr/dashboard: NVMe-oF – Enable editing host access from the Subsystem Overview page

Reviewed-by: Afreen Misbah <afreen@ibm.com>
1  2 
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-group-form/nvmeof-group-form.component.ts

index dd54c824f1994cc5178187780e3c0c188cedcaa8,583626b7bd1097ea33a15f51ea001d500644b08b..f5226f1c40bf03c374180e93d3e1cd5d6c279664
@@@ -67,21 -55,20 +67,22 @@@ export class NvmeofGroupFormComponent e
    }
  
    createForm() {
 +    const groupNameValidators = [
 +      Validators.required,
 +      (control: any) => {
 +        const value = control.value;
 +        return value && /[^a-zA-Z0-9_-]/.test(value) ? { invalidChars: true } : null;
 +      }
 +    ];
 +
 +    const groupNameAsyncValidators = this.editing
 +      ? []
 +      : [CdValidators.unique(this.nvmeofService.exists, this.nvmeofService)];
 +
      this.groupForm = new CdFormGroup({
 -      groupName: new UntypedFormControl(
 -        null,
 -        [
 -          Validators.required,
 -          (control) => {
 -            const value = control.value;
 -            return value && /[^a-zA-Z0-9_-]/.test(value) ? { invalidChars: true } : null;
 -          }
 -        ],
 -        [CdValidators.unique(this.nvmeofService.exists, this.nvmeofService)]
 -      ),
 +      groupName: new UntypedFormControl(null, groupNameValidators, groupNameAsyncValidators),
        unmanaged: new UntypedFormControl(false),
+       enable_auth: new UntypedFormControl(false),
        enableEncryption: new UntypedFormControl(false),
        encryptionConfig: new UntypedFormControl(null),
        encryptionKey: new UntypedFormControl(null),