Merge remote-tracking branch 'origin/develop' into setttingssync
This commit is contained in:
commit
63bffe73db
8 changed files with 147 additions and 149 deletions
|
|
@ -3,7 +3,7 @@ import { set } from 'lodash'
|
|||
|
||||
import messages from '../i18n/messages'
|
||||
import localeService from '../services/locale/locale.service.js'
|
||||
import { applyConfig } from '../services/style_setter/style_setter.js'
|
||||
import { applyStyleConfig } from '../services/style_setter/style_setter.js'
|
||||
import { defaultState, instanceDefaultConfig } from './default_config_state.js'
|
||||
|
||||
import { useEmojiStore } from 'src/stores/emoji.js'
|
||||
|
|
@ -71,7 +71,7 @@ const config = {
|
|||
mutations: {
|
||||
setOptionTemporarily(state, { name, value }) {
|
||||
set(state, name, value)
|
||||
applyConfig(state)
|
||||
applyStyleConfig(state)
|
||||
},
|
||||
setOption(state, { name, value }) {
|
||||
set(state, name, value)
|
||||
|
|
@ -162,7 +162,7 @@ const config = {
|
|||
} else {
|
||||
commit('setOption', { name, value })
|
||||
if (APPEARANCE_SETTINGS_KEYS.has(name)) {
|
||||
applyConfig(state)
|
||||
applyStyleConfig(state)
|
||||
}
|
||||
if (name.startsWith('theme3hacks')) {
|
||||
dispatch('applyTheme', { recompile: true })
|
||||
|
|
|
|||
|
|
@ -1,9 +1,10 @@
|
|||
const browserLocale = (window.navigator.language || 'en').split('-')[0]
|
||||
const browserLocale = (navigator.language || 'en').split('-')[0]
|
||||
|
||||
/// Instance config entries provided by static config or pleroma api
|
||||
/// Put settings here only if it does not make sense for a normal user
|
||||
/// to override it.
|
||||
export const staticOrApiConfigDefault = {
|
||||
name: 'PleromaFE',
|
||||
theme: 'pleroma-dark',
|
||||
palette: null,
|
||||
style: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue