From: Pedro Gonzalez Gomez Date: Thu, 20 Apr 2023 15:29:57 +0000 (+0200) Subject: mgr/dashboard: hide notification on force promote X-Git-Tag: v19.0.0~1352^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abe1e5101cae0fc98ad9c6c404c6f7ce97a42137;p=ceph.git mgr/dashboard: hide notification on force promote Fixes: https://tracker.ceph.com/issues/59500 Signed-off-by: Pedro Gonzalez Gomez --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts index 72994cab1e3..10230035d29 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts @@ -577,6 +577,7 @@ export class RbdListComponent extends ListWithDetails implements OnInit { .subscribe( () => {}, (error) => { + error.preventDefault(); if (primary) { this.errorMessage = error.error['detail'].replace(/\[.*?\]\s*/, ''); request.force = true;