From da29fa914cde63a19bb0011129c9b988edc3227f Mon Sep 17 00:00:00 2001 From: Pedro Gonzalez Gomez Date: Tue, 1 Apr 2025 22:43:12 +0200 Subject: [PATCH] mgr/dashboard: fix smb cluster placement Fixes: https://tracker.ceph.com/issues/70757 Signed-off-by: Pedro Gonzalez Gomez --- .../ceph/smb/smb-cluster-form/smb-cluster-form.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.ts index e48619c5824..3c30a9abcc4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/smb/smb-cluster-form/smb-cluster-form.component.ts @@ -217,8 +217,8 @@ export class SmbClusterFormComponent extends CdForm implements OnInit { } multiSelector(event: any, field: 'label' | 'hosts') { - if (field === PLACEMENT.host) this.selectedLabels = event.map((label: any) => label.content); - else this.selectedHosts = event.map((host: any) => host.content); + if (field === PLACEMENT.host) this.selectedHosts = event.map((host: any) => host.content); + else this.selectedLabels = event.map((label: any) => label.content); } onAuthModeChange() { -- 2.39.5