From d672455ad80fe30c71699ee8d6207cf471fbd904 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+nikonratm@users.noreply.github.com> Date: Mon, 25 Jan 2021 23:32:02 -0800 Subject: [PATCH] Cleanup --- .../common/confirm-dialog/confirm-dialog.component.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts index 4287b66d0..454c9a3d4 100644 --- a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts +++ b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts @@ -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 - 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() } }