mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-12 21:44:21 -06:00
Chore: update to Angular 20 (#10273)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Injectable, inject } from '@angular/core'
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
|
||||
import { Observable, Subject, of } from 'rxjs'
|
||||
import { first } from 'rxjs/operators'
|
||||
@@ -11,12 +11,16 @@ import { DocumentService } from './rest/document.service'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class OpenDocumentsService {
|
||||
private documentService = inject(DocumentService)
|
||||
private modalService = inject(NgbModal)
|
||||
|
||||
private MAX_OPEN_DOCUMENTS = 5
|
||||
|
||||
constructor(
|
||||
private documentService: DocumentService,
|
||||
private modalService: NgbModal
|
||||
) {
|
||||
constructor() {
|
||||
this.load()
|
||||
}
|
||||
|
||||
public load() {
|
||||
if (sessionStorage.getItem(OPEN_DOCUMENT_SERVICE.DOCUMENTS)) {
|
||||
try {
|
||||
this.openDocuments = JSON.parse(
|
||||
|
||||
Reference in New Issue
Block a user