]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: hide notification on force promote 51163/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 15:31:52 +0000 (17:31 +0200)
Fixes: https://tracker.ceph.com/issues/59500
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.ts

index 72994cab1e36a7a6ceedd0797f1dd808c70d1bc6..10230035d29887709f4fffd7e0f7eeec28fb0d93 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;