mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Just include comments on document object
This commit is contained in:
parent
727fb38baf
commit
89c639f850
14 changed files with 147 additions and 85 deletions
|
|
@ -42,6 +42,7 @@ import {
|
|||
} from 'src/app/services/permissions.service'
|
||||
import { PaperlessUser } from 'src/app/data/paperless-user'
|
||||
import { UserService } from 'src/app/services/rest/user.service'
|
||||
import { PaperlessDocumentComment } from 'src/app/data/paperless-document-comment'
|
||||
|
||||
enum DocumentDetailNavIDs {
|
||||
Details = 1,
|
||||
|
|
@ -667,8 +668,8 @@ export class DocumentDetailComponent
|
|||
)
|
||||
}
|
||||
|
||||
commentsUpdated(n_comments: number) {
|
||||
this.document.n_comments = n_comments
|
||||
commentsUpdated(comments: PaperlessDocumentComment[]) {
|
||||
this.document.comments = comments
|
||||
this.openDocumentService.refreshDocument(this.documentId)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue