|
|
@ -8,6 +8,7 @@ const settings = {
|
|
|
|
hideAttachmentsInConvLocal: this.$store.state.config.hideAttachmentsInConv,
|
|
|
|
hideAttachmentsInConvLocal: this.$store.state.config.hideAttachmentsInConv,
|
|
|
|
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
|
|
|
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
|
|
|
autoLoadLocal: this.$store.state.config.autoLoad,
|
|
|
|
autoLoadLocal: this.$store.state.config.autoLoad,
|
|
|
|
|
|
|
|
hoverPreviewLocal: this.$store.state.config.hoverPreview,
|
|
|
|
muteWordsString: this.$store.state.config.muteWords.join('\n')
|
|
|
|
muteWordsString: this.$store.state.config.muteWords.join('\n')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -27,6 +28,9 @@ const settings = {
|
|
|
|
autoLoadLocal (value) {
|
|
|
|
autoLoadLocal (value) {
|
|
|
|
this.$store.dispatch('setOption', { name: 'autoLoad', value })
|
|
|
|
this.$store.dispatch('setOption', { name: 'autoLoad', value })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
hoverPreviewLocal (value) {
|
|
|
|
|
|
|
|
this.$store.dispatch('setOption', { name: 'hoverPreview', value })
|
|
|
|
|
|
|
|
},
|
|
|
|
muteWordsString (value) {
|
|
|
|
muteWordsString (value) {
|
|
|
|
value = filter(value.split('\n'), (word) => trim(word).length > 0)
|
|
|
|
value = filter(value.split('\n'), (word) => trim(word).length > 0)
|
|
|
|
this.$store.dispatch('setOption', { name: 'muteWords', value })
|
|
|
|
this.$store.dispatch('setOption', { name: 'muteWords', value })
|
|
|
|