Avoid theme reload

This commit is contained in:
eal 2017-09-04 17:28:49 +03:00
parent ff8e3b5458
commit 288a8edf9d
1 changed files with 3 additions and 2 deletions

View File

@ -15,8 +15,9 @@ export default {
mobileActivePanel: 'timeline' mobileActivePanel: 'timeline'
}), }),
created () { created () {
if (this.$store.state.config.savedTheme) { const savedTheme = this.$store.state.config.savedTheme
this.$store.dispatch('setOption', { name: 'theme', value: this.$store.config.savedTheme }) if (savedTheme && (savedTheme !== this.$store.config.theme)) {
this.$store.dispatch('setOption', { name: 'theme', value: savedTheme })
} }
}, },
computed: { computed: {