Merge pull request #22003 from votdev/fix_deletion_dialog

mgr/dashboard: Deletion dialog falsely executes deletion when pressing 'Cancel'

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
This commit is contained in:
Lenz Grimmer 2018-05-16 15:44:05 +02:00 committed by GitHub
commit 5820d714f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 5 deletions

View 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">

View 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(