diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-17 18:21:02 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-17 18:21:02 +0100 |
| commit | cd0925747dd4657747ed3bdb242446297676b5cf (patch) | |
| tree | 264b934e391e1786cdb17778738db5c92928d28c /src/components/style_switcher/style_switcher.js | |
| parent | cdc90f8edcfa705741151d975fdf59a954687137 (diff) | |
Show current theme in theme selector.
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') |
