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: v17.2.7~452^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b80ab2cb0a69b4800f5ee7a10ce88644f26aa38a;p=ceph.git mgr/dashboard: hide notification on force promote Fixes: https://tracker.ceph.com/issues/59500 Signed-off-by: Pedro Gonzalez Gomez (cherry picked from commit abe1e5101cae0fc98ad9c6c404c6f7ce97a42137) --- 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 45f48b6f4dbf..6a8910d32328 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;