Make every configuration option default-overridable by instance admins
This commit is contained in:
parent
90f7dee343
commit
dd910ff8a8
5 changed files with 156 additions and 218 deletions
|
|
@ -6,7 +6,7 @@ import localeService from '../services/locale/locale.service.js'
|
|||
import { useI18nStore } from 'src/stores/i18n.js'
|
||||
import { useInterfaceStore } from 'src/stores/interface.js'
|
||||
|
||||
import { defaultState } from './default_config_state.js'
|
||||
import { instanceDefaultConfig, defaultState } from './default_config_state.js'
|
||||
|
||||
const BACKEND_LANGUAGE_COOKIE_NAME = 'userLanguage'
|
||||
const APPEARANCE_SETTINGS_KEYS = new Set([
|
||||
|
|
@ -38,9 +38,7 @@ export const multiChoiceProperties = [
|
|||
]
|
||||
|
||||
// caching the instance default properties
|
||||
export const instanceDefaultProperties = Object.entries(defaultState)
|
||||
.filter(([, value]) => value === undefined)
|
||||
.map(([key]) => key)
|
||||
export const instanceDefaultProperties = Object.keys(instanceDefaultConfig)
|
||||
|
||||
const config = {
|
||||
state: { ...defaultState },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue