Show current theme in theme selector.

This commit is contained in:
Roger Braun 2017-02-17 18:21:02 +01:00
parent cdc90f8edc
commit cd0925747d

View file

@ -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')