mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Cleanup
This commit is contained in:
parent
96a572b7a6
commit
d672455ad8
@ -9,6 +9,8 @@ import { Subject } from 'rxjs';
|
|||||||
})
|
})
|
||||||
export class ConfirmDialogComponent implements OnInit {
|
export class ConfirmDialogComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor(public activeModal: NgbActiveModal) { }
|
||||||
|
|
||||||
@Output()
|
@Output()
|
||||||
public confirmClicked = new EventEmitter()
|
public confirmClicked = new EventEmitter()
|
||||||
|
|
||||||
@ -35,10 +37,6 @@ export class ConfirmDialogComponent implements OnInit {
|
|||||||
|
|
||||||
subject: Subject<boolean>
|
subject: Subject<boolean>
|
||||||
|
|
||||||
constructor(public activeModal: NgbActiveModal) {
|
|
||||||
this.confirmClicked.asObservable()
|
|
||||||
}
|
|
||||||
|
|
||||||
delayConfirm(seconds: number) {
|
delayConfirm(seconds: number) {
|
||||||
this.confirmButtonEnabled = false
|
this.confirmButtonEnabled = false
|
||||||
this.seconds = seconds
|
this.seconds = seconds
|
||||||
@ -61,8 +59,8 @@ export class ConfirmDialogComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
confirm() {
|
confirm() {
|
||||||
|
this.confirmClicked.emit()
|
||||||
this.subject?.next(true)
|
this.subject?.next(true)
|
||||||
this.subject?.complete()
|
this.subject?.complete()
|
||||||
this.confirmClicked.emit()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user