This commit is contained in:
Michael Shamoon 2021-01-25 23:32:02 -08:00
parent 96a572b7a6
commit d672455ad8

View File

@ -9,6 +9,8 @@ import { Subject } from 'rxjs';
})
export class ConfirmDialogComponent implements OnInit {
constructor(public activeModal: NgbActiveModal) { }
@Output()
public confirmClicked = new EventEmitter()
@ -35,10 +37,6 @@ export class ConfirmDialogComponent implements OnInit {
subject: Subject<boolean>
constructor(public activeModal: NgbActiveModal) {
this.confirmClicked.asObservable()
}
delayConfirm(seconds: number) {
this.confirmButtonEnabled = false
this.seconds = seconds
@ -61,8 +59,8 @@ export class ConfirmDialogComponent implements OnInit {
}
confirm() {
this.confirmClicked.emit()
this.subject?.next(true)
this.subject?.complete()
this.confirmClicked.emit()
}
}