From 1d64b7621176e25fedd98553c282c56242d38571 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 14 Feb 2017 22:21:23 +0100 Subject: Add basic configuration module, make it work for title and theme. --- src/components/style_switcher/style_switcher.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/components/style_switcher') diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js index 8a8cc2a0..954e2ff0 100644 --- a/src/components/style_switcher/style_switcher.js +++ b/src/components/style_switcher/style_switcher.js @@ -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 }) } } } -- cgit v1.2.3-70-g09d2