mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 16:46:50 +01:00
Enhancement: default to title/content search, allow choosing full search link from global search (#6805)
This commit is contained in:
parent
8abb0cd75d
commit
719f76060b
8 changed files with 191 additions and 101 deletions
|
|
@ -12,6 +12,11 @@ export interface UiSetting {
|
|||
default: any
|
||||
}
|
||||
|
||||
export enum GlobalSearchType {
|
||||
ADVANCED = 'advanced',
|
||||
TITLE_CONTENT = 'title-content',
|
||||
}
|
||||
|
||||
export const SETTINGS_KEYS = {
|
||||
LANGUAGE: 'language',
|
||||
APP_LOGO: 'app_logo',
|
||||
|
|
@ -57,6 +62,7 @@ export const SETTINGS_KEYS = {
|
|||
DOCUMENT_EDITING_REMOVE_INBOX_TAGS:
|
||||
'general-settings:document-editing:remove-inbox-tags',
|
||||
SEARCH_DB_ONLY: 'general-settings:search:db-only',
|
||||
SEARCH_FULL_TYPE: 'general-settings:search:more-link',
|
||||
}
|
||||
|
||||
export const SETTINGS: UiSetting[] = [
|
||||
|
|
@ -225,4 +231,9 @@ export const SETTINGS: UiSetting[] = [
|
|||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
key: SETTINGS_KEYS.SEARCH_FULL_TYPE,
|
||||
type: 'string',
|
||||
default: GlobalSearchType.TITLE_CONTENT,
|
||||
},
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue