From: Kiefer Chang Date: Mon, 8 Jun 2020 07:42:01 +0000 (+0800) Subject: mgr/dashboard: fix OSD critical confirmation modal errors X-Git-Tag: v16.1.0~1976^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53401d7a54623e26cfcd538213fd0a7312bf3106;p=ceph.git mgr/dashboard: fix OSD critical confirmation modal errors - Fix OSD IDs are not displayed after submitting actions. - Fix `OSD is` and `OSDs are` strings are missing in the unsafe operation warning panel. Signed-off-by: Kiefer Chang --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html index 761a46e80e7..aee75c724f2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html @@ -63,14 +63,15 @@ + let-actionDescription="actionDescription" + let-osdIds="osdIds">
The {selection.hasSingleSelection, select, 1 {OSD is} 0 {OSDs are}} not safe to be + i18n>The {selection.hasSingleSelection, select, true {OSD is} false {OSDs are}} not safe to be {{ actionDescription }}! {{ message }}
- OSD {{ getSelectedOsdIds() | join }} will be + OSD {{ osdIds | join }} will be {{ actionDescription }} if you proceed.
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts index 43fef70189a..d960da620f3 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts @@ -518,7 +518,8 @@ export class OsdListComponent extends ListWithDetails implements OnInit { bodyContext: { safeToPerform: result[checkKey], message: result.message, - actionDescription: templateItemDescription + actionDescription: templateItemDescription, + osdIds: this.getSelectedOsdIds() }, childFormGroup: childFormGroup, childFormGroupTemplate: childFormGroupTemplate,