aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings/settings.js
diff options
context:
space:
mode:
authorHector A. Escobedo <ninjahector.escobedo@gmail.com>2017-02-22 18:38:05 -0500
committerHector A. Escobedo <ninjahector.escobedo@gmail.com>2017-02-22 18:39:56 -0500
commita7db72d7a7667fc5f06953b37d32d6847e6dfc58 (patch)
treeebad4d8317359d921b24341e155b56ebb8b34d7b /src/components/settings/settings.js
parentb939f70d17697eaa5721ac86bcfcd2fc55871df9 (diff)
Add setting to toggle NSFW hiding.
Diffstat (limited to 'src/components/settings/settings.js')
-rw-r--r--src/components/settings/settings.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js
index 61236af2..7d58b64c 100644
--- a/src/components/settings/settings.js
+++ b/src/components/settings/settings.js
@@ -4,6 +4,7 @@ const settings = {
data () {
return {
hideAttachmentsLocal: this.$store.state.config.hideAttachments
+ hideNsfwLocal: this.$store.state.config.hideNsfw
}
},
components: {
@@ -13,6 +14,9 @@ const settings = {
hideAttachmentsLocal (value) {
this.$store.dispatch('setOption', { name: 'hideAttachments', value })
}
+ hideNsfwLocal (value) {
+ this.$store.dispatch('setOption', { name: 'hideNsfw', value })
+ }
}
}