From: Sagar Gopale Date: Wed, 25 Mar 2026 13:28:52 +0000 (+0530) Subject: mgr/dashboard: mgr/dashboard: Rename namespace block size field and reorder namespace... X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F67995%2Fhead;p=ceph.git mgr/dashboard: mgr/dashboard: Rename namespace block size field and reorder namespace create form fields Fixes: https://tracker.ceph.com/issues/75707 Signed-off-by: Sagar Gopale --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html index 370db1c726d6..77c6700f7243 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html @@ -62,9 +62,9 @@ class="form-item">
- +
-
- + - - - @if (nsForm.controls['namespace_size'].hasError('blockSizeMultiple')) { + + + Size must be a multiple of the block size (typically 512 or 4096 bytes). - } + i18n>Enter a valid size (e.g., 10GiB).
@@ -245,15 +252,16 @@ i18n>Image name (optional) + formControlName="rbd_image_name" + [invalid]="rbdImageName.isInvalid" /> @@ -289,36 +297,21 @@ } - +
-
- + - - - - Enter a valid size (e.g., 10GiB). - +
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts index c6b6dfc7415e..57c3aaa913c7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts @@ -249,7 +249,7 @@ export class NvmeofNamespacesFormComponent implements OnInit { return /^[^@/]+$/.test(value) ? null : { rbdImageName: true }; }) ]), - namespace_size: new UntypedFormControl(null), // UI only - not sent to backend + namespace_size: new UntypedFormControl(512), // Block size in bytes; default 512 host_access: new UntypedFormControl('all'), // UI only - determines visibility initiators: new UntypedFormControl([]) // UI only - selected hosts });