mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 17:47:08 +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 {
|
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…
Add table
Add a link
Reference in a new issue