Try to load saved theme when App created

This commit is contained in:
eal 2017-09-04 17:02:23 +03:00
parent 798af7bb5b
commit ff8e3b5458
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ export default {
data: () => ({
mobileActivePanel: 'timeline'
}),
created () {
if (this.$store.state.config.savedTheme) {
this.$store.dispatch('setOption', { name: 'theme', value: this.$store.config.savedTheme })
}
},
computed: {
currentUser () { return this.$store.state.users.currentUser },
background () {