]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: hide notification on force promote 51164/head
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 20 Apr 2023 15:29:57 +0000 (17:29 +0200)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 20 Apr 2023 17:49:14 +0000 (19:49 +0200)
Fixes: https://tracker.ceph.com/issues/59500
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit abe1e5101cae0fc98ad9c6c404c6f7ce97a42137)

src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts

index 45f48b6f4dbff78bc7e3f5336a246256db8b2e24..6a8910d32328398ec1117c680b2d2e447702f8f4 100644 (file)
@@ -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;