Chore: update to Angular 20 (#10273)

This commit is contained in:
shamoon
2025-06-27 14:06:40 -07:00
committed by GitHub
parent dfad3c4d8e
commit 958f98d7e5
146 changed files with 2662 additions and 2687 deletions

View File

@@ -1,5 +1,5 @@
import { HttpClient } from '@angular/common/http'
import { Injectable } from '@angular/core'
import { Injectable, inject } from '@angular/core'
import { Observable, Subject } from 'rxjs'
import { first, takeUntil } from 'rxjs/operators'
import {
@@ -13,6 +13,8 @@ import { environment } from 'src/environments/environment'
providedIn: 'root',
})
export class TasksService {
private http = inject(HttpClient)
private baseUrl: string = environment.apiBaseUrl
private endpoint: string = 'tasks'
@@ -48,8 +50,6 @@ export class TasksService {
return this.fileTasks.filter((t) => t.status == PaperlessTaskStatus.Failed)
}
constructor(private http: HttpClient) {}
public reload() {
if (this.loading) return
this.loading = true