mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 02:57:09 +01:00
Feature: documents trash aka soft delete (#6944)
This commit is contained in:
parent
9d4e2d4652
commit
a796e58a94
38 changed files with 1283 additions and 191 deletions
|
|
@ -144,6 +144,8 @@ export interface Document extends ObjectWithPermissions {
|
|||
|
||||
added?: Date
|
||||
|
||||
deleted_at?: Date
|
||||
|
||||
original_file_name?: string
|
||||
|
||||
archived_file_name?: string
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ export const SETTINGS_KEYS = {
|
|||
'general-settings:document-editing:remove-inbox-tags',
|
||||
SEARCH_DB_ONLY: 'general-settings:search:db-only',
|
||||
SEARCH_FULL_TYPE: 'general-settings:search:more-link',
|
||||
EMPTY_TRASH_DELAY: 'general-settings:trash:empty-trash-delay',
|
||||
}
|
||||
|
||||
export const SETTINGS: UiSetting[] = [
|
||||
|
|
@ -236,4 +237,9 @@ export const SETTINGS: UiSetting[] = [
|
|||
type: 'string',
|
||||
default: GlobalSearchType.TITLE_CONTENT,
|
||||
},
|
||||
{
|
||||
key: SETTINGS_KEYS.EMPTY_TRASH_DELAY,
|
||||
type: 'number',
|
||||
default: 30,
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue