mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Fix: Stop auto-refresh logs / tasks after close (#5089)
This commit is contained in:
parent
7570945cf0
commit
945fb675e9
@ -54,6 +54,7 @@ export class LogsComponent implements OnInit, AfterViewChecked, OnDestroy {
|
|||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
this.unsubscribeNotifier.next(true)
|
this.unsubscribeNotifier.next(true)
|
||||||
this.unsubscribeNotifier.complete()
|
this.unsubscribeNotifier.complete()
|
||||||
|
clearInterval(this.autoRefreshInterval)
|
||||||
}
|
}
|
||||||
|
|
||||||
reloadLogs() {
|
reloadLogs() {
|
||||||
|
@ -46,6 +46,7 @@ export class TasksComponent
|
|||||||
|
|
||||||
ngOnDestroy() {
|
ngOnDestroy() {
|
||||||
this.tasksService.cancelPending()
|
this.tasksService.cancelPending()
|
||||||
|
clearInterval(this.autoRefreshInterval)
|
||||||
}
|
}
|
||||||
|
|
||||||
dismissTask(task: PaperlessTask) {
|
dismissTask(task: PaperlessTask) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user