This commit is contained in:
lesion 2023-03-22 16:49:37 +01:00
parent 9f90df2bfc
commit 442f88f322
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -73,9 +73,9 @@ export const actions = {
nuxtServerInit ({ commit }, { res, app }) { nuxtServerInit ({ commit }, { res, app }) {
if (res.locals && res.locals.settings) { if (res.locals && res.locals.settings) {
commit('setSettings', res.locals.settings) commit('setSettings', res.locals.settings)
commit('setFilter', { type: 'show_recurrent',
value: res.locals.settings.allow_recurrent_event && res.locals.settings.recurrent_event_visible })
} }
commit('setFilter', { type: 'show_recurrent',
value: res.locals.settings.allow_recurrent_event && res.locals.settings.recurrent_event_visible })
commit('setLocalSetting', { key: 'hide_thumbs', value: app.$cookies.get('hide_thumbs') }) commit('setLocalSetting', { key: 'hide_thumbs', value: app.$cookies.get('hide_thumbs') })
commit('setLocalSetting', { key: 'theme.is_dark', value: app.$cookies.get('theme.is_dark') }) commit('setLocalSetting', { key: 'theme.is_dark', value: app.$cookies.get('theme.is_dark') })