aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2017-11-18 13:13:51 +0200
committershpuld <shp@cock.li>2017-11-18 13:13:51 +0200
commitd65d6e5da4c3be16791564910ea5461f4049e890 (patch)
tree631fbc6803e1c40627f86e535020957fefd8c16e /src/lib
parent21b31cf599e3dd619694ca7b6b998494b18af770 (diff)
Clean up, use translations, persist theme, add more presets.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/persisted_state.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/persisted_state.js b/src/lib/persisted_state.js
index 09b5e987..60811e65 100644
--- a/src/lib/persisted_state.js
+++ b/src/lib/persisted_state.js
@@ -51,6 +51,15 @@ export default function createPersistedState ({
merge({}, store.state, savedState)
)
}
+ if (store.state.config.customTheme) {
+ // This is a hack to deal with async loading of config.json and themes
+ // See: style_setter.js, setPreset()
+ window.themeLoaded = true
+ store.dispatch('setOption', {
+ name: 'customTheme',
+ value: store.state.config.customTheme
+ })
+ }
if (store.state.users.lastLoginName) {
store.dispatch('loginUser', {username: store.state.users.lastLoginName, password: 'xxx'})
}