mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 09:07:18 +01:00
Cleanup
This commit is contained in:
parent
96a572b7a6
commit
d672455ad8
1 changed files with 3 additions and 5 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue