From: Pedro Gonzalez Gomez Date: Tue, 1 Apr 2025 20:43:12 +0000 (+0200) Subject: mgr/dashboard: fix smb cluster placement X-Git-Tag: v20.3.0~188^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F62614%2Fhead;p=ceph.git mgr/dashboard: fix smb cluster placement Fixes: https://tracker.ceph.com/issues/70757 Signed-off-by: Pedro Gonzalez Gomez --- 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 e48619c5824c..3c30a9abcc41 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() {