mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Enhancement: default to title/content search, allow choosing full search link from global search (#6805)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user