mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 11:36:39 +01:00
Merge pull request #1375 from tim-vogel/add_comments
Feature: document comments
This commit is contained in:
commit
2b1c8c8d9a
23 changed files with 686 additions and 34 deletions
8
src-ui/src/app/data/paperless-document-comment.ts
Normal file
8
src-ui/src/app/data/paperless-document-comment.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { ObjectWithId } from './object-with-id'
|
||||
import { User } from './user'
|
||||
|
||||
export interface PaperlessDocumentComment extends ObjectWithId {
|
||||
created?: Date
|
||||
comment?: string
|
||||
user?: User
|
||||
}
|
||||
|
|
@ -36,6 +36,7 @@ export const SETTINGS_KEYS = {
|
|||
'general-settings:notifications:consumer-failed',
|
||||
NOTIFICATIONS_CONSUMER_SUPPRESS_ON_DASHBOARD:
|
||||
'general-settings:notifications:consumer-suppress-on-dashboard',
|
||||
COMMENTS_ENABLED: 'general-settings:comments-enabled',
|
||||
}
|
||||
|
||||
export const SETTINGS: PaperlessUiSetting[] = [
|
||||
|
|
@ -114,4 +115,9 @@ export const SETTINGS: PaperlessUiSetting[] = [
|
|||
type: 'boolean',
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
key: SETTINGS_KEYS.COMMENTS_ENABLED,
|
||||
type: 'boolean',
|
||||
default: true,
|
||||
},
|
||||
]
|
||||
|
|
|
|||
7
src-ui/src/app/data/user.ts
Normal file
7
src-ui/src/app/data/user.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { ObjectWithId } from './object-with-id'
|
||||
|
||||
export interface User extends ObjectWithId {
|
||||
username: string
|
||||
firstname: string
|
||||
lastname: string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue