Fix syntax errors and hiding logic.
This has been tested.
This commit is contained in:
parent
a7db72d7a7
commit
c338940084
4 changed files with 15 additions and 13 deletions
|
@ -3,7 +3,7 @@ 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
|
||||
}
|
||||
},
|
||||
|
@ -13,7 +13,7 @@ const settings = {
|
|||
watch: {
|
||||
hideAttachmentsLocal (value) {
|
||||
this.$store.dispatch('setOption', { name: 'hideAttachments', value })
|
||||
}
|
||||
},
|
||||
hideNsfwLocal (value) {
|
||||
this.$store.dispatch('setOption', { name: 'hideNsfw', value })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue