diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-18 01:19:44 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-18 01:19:44 +0100 |
| commit | 9d0d1f7de1e37cb40d7ecd34fd93744f55142e2b (patch) | |
| tree | 2094e0386f6203a8105b8eed538183a0700d634b /src/components/style_switcher/style_switcher.js | |
| parent | f25ae61c5daf7e925fb38d1636a61b70a4dd2d1c (diff) | |
| parent | cd0925747dd4657747ed3bdb242446297676b5cf (diff) | |
Merge branch 'develop' into feature/hash-routed
Diffstat (limited to 'src/components/style_switcher/style_switcher.js')
| -rw-r--r-- | src/components/style_switcher/style_switcher.js | 10 |
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') |
