akkoma-fe/src/components/settings/settings.js
2017-02-23 00:04:47 +01:00

20 lines
388 B
JavaScript

import StyleSwitcher from '../style_switcher/style_switcher.vue'
const settings = {
data () {
return {
hideAttachmentsLocal: this.$store.state.config.hideAttachments
}
},
components: {
StyleSwitcher
},
watch: {
hideAttachmentsLocal (value) {
this.$store.dispatch('setOption', { name: 'hideAttachments', value })
}
}
}
export default settings