]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: disable cluster selection in NFS export editing form 37995/head
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 4 Nov 2020 03:00:21 +0000 (11:00 +0800)
committerLaura Paduano <lpaduano@suse.com>
Wed, 18 Nov 2020 10:58:15 +0000 (11:58 +0100)
commit59354a2f25db930a17ad99a8a9b3694b299d8587
tree99607ad55caf6f98bc62e69070d45cce52ca3259
parent64a2940f573357babe06b7b92dd1b01f582a1f35
mgr/dashboard: disable cluster selection in NFS export editing form

We should not allow changing an export's cluster because an export ID
might live in one cluster but not in another one. Editing a non-existing
export in a cluster causes an error.

Fixes: https://tracker.ceph.com/issues/47373
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit d678d8076c2a4c5edfe489d553e3c8770462f023)

 Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-list/nfs-list.component.spec.ts
 - Some imports differ from master; remove SummaryService and CephReleaseNamePipe from providers
   and no longer needed test case; also remove not working docsUrl (and related lines) from
   nfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts