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,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(