]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Deletion dialog falsely executes deletion when pressing 'Cancel' 22003/head
authorVolker Theile <vtheile@suse.com>
Tue, 15 May 2018 12:44:22 +0000 (14:44 +0200)
committerVolker Theile <vtheile@suse.com>
Tue, 15 May 2018 13:29:13 +0000 (15:29 +0200)
If a deletion fails and the 'Cancel' button is pressed to close the dialog, then the deletion process is triggered again.

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/components/deletion-modal/deletion-modal.component.ts

index 8f89a8d9e8d6fe301b39a3057312e559c2962408..5054785be89aaba6347aa8878881574248555ac2 100644 (file)
@@ -7,7 +7,6 @@
   <ng-container class="modal-content">
     <form name="deletionForm"
           #formDir="ngForm"
-          (submit)="delete($event)"
           [formGroup]="deletionForm"
           novalidate>
       <div class="modal-body">
index 2e381fb8e1cc7b9aa063bcc5881f40a74e67db9a..d30d2e69e4ebb5166b92512de8b25925ee84cfd1 100644 (file)
@@ -74,10 +74,6 @@ export class DeletionModalComponent implements OnInit {
     this.confirmation.updateValueAndValidity();
   }
 
-  delete ($event) {
-    this.submitButton.submit($event);
-  }
-
   deletionCall() {
     if (this.deletionObserver) {
       this.deletionObserver().subscribe(