mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Rename comments --> notes
This commit is contained in:
parent
89c639f850
commit
bf8ae22f3f
45 changed files with 540 additions and 528 deletions
|
|
@ -42,14 +42,14 @@ 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'
|
||||
import { PaperlessDocumentNote } from 'src/app/data/paperless-document-note'
|
||||
|
||||
enum DocumentDetailNavIDs {
|
||||
Details = 1,
|
||||
Content = 2,
|
||||
Metadata = 3,
|
||||
Preview = 4,
|
||||
Comments = 5,
|
||||
Notes = 5,
|
||||
Permissions = 6,
|
||||
}
|
||||
|
||||
|
|
@ -658,9 +658,9 @@ export class DocumentDetailComponent
|
|||
}
|
||||
}
|
||||
|
||||
get commentsEnabled(): boolean {
|
||||
get notesEnabled(): boolean {
|
||||
return (
|
||||
this.settings.get(SETTINGS_KEYS.COMMENTS_ENABLED) &&
|
||||
this.settings.get(SETTINGS_KEYS.NOTES_ENABLED) &&
|
||||
this.permissionsService.currentUserCan(
|
||||
PermissionAction.View,
|
||||
PermissionType.Document
|
||||
|
|
@ -668,8 +668,8 @@ export class DocumentDetailComponent
|
|||
)
|
||||
}
|
||||
|
||||
commentsUpdated(comments: PaperlessDocumentComment[]) {
|
||||
this.document.comments = comments
|
||||
notesUpdated(notes: PaperlessDocumentNote[]) {
|
||||
this.document.notes = notes
|
||||
this.openDocumentService.refreshDocument(this.documentId)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue