From: Sagar Gopale Date: Thu, 2 Apr 2026 08:06:37 +0000 (+0530) Subject: mgr/dashboard: NVMeoF namespace create form should show subsystem selection first X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0457ac58b6eb4b5557f01d4a5c23e0d5fc3ab36a;p=ceph.git mgr/dashboard: NVMeoF namespace create form should show subsystem selection first Fixes: https://tracker.ceph.com/issues/75846 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 c87e889e42ea..370db1c726d6 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 @@ -20,17 +20,56 @@ + +
+
+ + @if (!subsystems) { + + } + @if (subsystems && subsystems.length === 0) { + + } + @if (subsystems && subsystems.length > 0) { + + } + @for (subsystem of subsystems; track subsystem.nqn) { + + } + +
+
+
@@ -44,11 +83,13 @@
@@ -126,49 +167,16 @@
} - -
-
- - @if (subsystems === undefined) { - - } - @if (subsystems && subsystems.length === 0) { - - } - @if (subsystems && subsystems.length > 0) { - - } - @for (subsystem of subsystems; track subsystem.nqn) { - - } - -
-
-
Image name (optional) @@ -257,8 +267,10 @@
@@ -320,4 +334,3 @@
- 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 f3488cb68adc..63b1b5fb5666 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 @@ -45,7 +45,7 @@ export class NvmeofNamespacesFormComponent implements OnInit { nsForm: CdFormGroup; subsystemNQN: string; - subsystems: NvmeofSubsystem[] = []; + subsystems: NvmeofSubsystem[] | null = null; rbdPools: Array = null; rbdImages: any[] = []; initiatorCandidates: { content: string; selected: boolean }[] = [];