mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Chore: update to Angular 20 (#10273)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core'
|
||||
import { Component, EventEmitter, Input, Output, inject } from '@angular/core'
|
||||
import {
|
||||
FormControl,
|
||||
FormGroup,
|
||||
@@ -28,6 +28,10 @@ import { ComponentWithPermissions } from '../with-permissions/with-permissions.c
|
||||
],
|
||||
})
|
||||
export class DocumentNotesComponent extends ComponentWithPermissions {
|
||||
private notesService = inject(DocumentNotesService)
|
||||
private toastService = inject(ToastService)
|
||||
private usersService = inject(UserService)
|
||||
|
||||
noteForm: FormGroup = new FormGroup({
|
||||
newNote: new FormControl(''),
|
||||
})
|
||||
@@ -48,11 +52,7 @@ export class DocumentNotesComponent extends ComponentWithPermissions {
|
||||
updated: EventEmitter<DocumentNote[]> = new EventEmitter()
|
||||
users: User[]
|
||||
|
||||
constructor(
|
||||
private notesService: DocumentNotesService,
|
||||
private toastService: ToastService,
|
||||
private usersService: UserService
|
||||
) {
|
||||
constructor() {
|
||||
super()
|
||||
this.usersService.listAll().subscribe({
|
||||
next: (users) => {
|
||||
|
Reference in New Issue
Block a user