]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix the exception when displaying OSD preview modal 38384/head
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 2 Dec 2020 06:11:43 +0000 (14:11 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Wed, 2 Dec 2020 07:11:55 +0000 (15:11 +0800)
commitd965b85c91e7f80916ea50d1d39f405723bcb176
treef62d2a9ae6ab8bacbcf40f789697f6ab0f40f037
parentfc0ee535485e75fef3dc719e69365e04e4a6b5de
mgr/dashboard: fix the exception when displaying OSD preview modal

Adapt changes in https://github.com/ceph/ceph/pull/37994.
- The preview button should not spin.
- The preview button should be enabled again after destroying the
  preview modal.

Fixes: https://tracker.ceph.com/issues/48421
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-form/osd-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/components/form-button-panel/form-button-panel.component.ts