Add word-based muting to settings / statuses.
This commit is contained in:
parent
f3ca011fbe
commit
a53555254a
6 changed files with 37 additions and 5 deletions
src/components/settings
|
@ -5,7 +5,8 @@ const settings = {
|
|||
return {
|
||||
hideAttachmentsLocal: this.$store.state.config.hideAttachments,
|
||||
hideAttachmentsInConvLocal: this.$store.state.config.hideAttachmentsInConv,
|
||||
hideNsfwLocal: this.$store.state.config.hideNsfw
|
||||
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
||||
muteWordsString: this.$store.state.config.muteWords.join('\n')
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
@ -20,6 +21,9 @@ const settings = {
|
|||
},
|
||||
hideNsfwLocal (value) {
|
||||
this.$store.dispatch('setOption', { name: 'hideNsfw', value })
|
||||
},
|
||||
muteWordsString (value) {
|
||||
this.$store.dispatch('setOption', { name: 'muteWords', value: value.split('\n') })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue