aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/style_switcher/style_switcher.js')
-rw-r--r--src/components/style_switcher/style_switcher.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index 954e2ff0..d265572d 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -1,8 +1,10 @@
export default {
- data: () => ({
- availableStyles: [],
- selected: false
- }),
+ data () {
+ return {
+ availableStyles: [],
+ selected: this.$store.state.config.theme
+ }
+ },
created () {
const self = this
window.fetch('/static/css/themes.json')