aboutsummaryrefslogtreecommitdiff
path: root/src/components/style_switcher/style_switcher.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/style_switcher/style_switcher.js')
-rw-r--r--src/components/style_switcher/style_switcher.js5
1 files changed, 1 insertions, 4 deletions
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 })
}
}
}