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>
<ng-container class="modal-content">
<form name="deletionForm"
#formDir="ngForm"
- (submit)="delete($event)"
[formGroup]="deletionForm"
novalidate>
<div class="modal-body">
this.confirmation.updateValueAndValidity();
}
- delete ($event) {
- this.submitButton.submit($event);
- }
-
deletionCall() {
if (this.deletionObserver) {
this.deletionObserver().subscribe(