Save slimsidebar settings to db on change

This commit is contained in:
Michael Shamoon
2022-09-12 12:54:28 -07:00
parent 1f17aa0aa2
commit 49626ccf37
2 changed files with 31 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ export const SETTINGS_KEYS = {
NOTIFICATIONS_CONSUMER_SUPPRESS_ON_DASHBOARD:
'general-settings:notifications:consumer-suppress-on-dashboard',
COMMENTS_ENABLED: 'general-settings:comments-enabled',
SLIM_SIDEBAR: 'general-settings:slim-sidebar',
}
export const SETTINGS: PaperlessUiSetting[] = [
@@ -55,6 +56,11 @@ export const SETTINGS: PaperlessUiSetting[] = [
type: 'boolean',
default: false,
},
{
key: SETTINGS_KEYS.SLIM_SIDEBAR,
type: 'boolean',
default: false,
},
{
key: SETTINGS_KEYS.DOCUMENT_LIST_SIZE,
type: 'number',