Add basic configuration module, make it work for title and theme.

This commit is contained in:
Roger Braun 2017-02-14 22:21:23 +01:00
parent 340b21475d
commit 1d64b76211
6 changed files with 47 additions and 10 deletions

View file

@ -1,5 +1,3 @@
import StyleSetter from '../../services/style_setter/style_setter.js'
export default {
data: () => ({
availableStyles: [],
@ -13,8 +11,7 @@ export default {
},
watch: {
selected () {
const fullPath = `/static/css/${this.selected}`
StyleSetter.setStyle(fullPath)
this.$store.dispatch('setOption', { name: 'theme', value: this.selected })
}
}
}