|
|
|
@ -3,7 +3,8 @@ import StyleSwitcher from '../style_switcher/style_switcher.vue'
|
|
|
|
|
const settings = {
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
hideAttachmentsLocal: this.$store.state.config.hideAttachments
|
|
|
|
|
hideAttachmentsLocal: this.$store.state.config.hideAttachments,
|
|
|
|
|
hideNsfwLocal: this.$store.state.config.hideNsfw
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
@ -12,6 +13,9 @@ const settings = {
|
|
|
|
|
watch: {
|
|
|
|
|
hideAttachmentsLocal (value) {
|
|
|
|
|
this.$store.dispatch('setOption', { name: 'hideAttachments', value })
|
|
|
|
|
},
|
|
|
|
|
hideNsfwLocal (value) {
|
|
|
|
|
this.$store.dispatch('setOption', { name: 'hideNsfw', value })
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|