diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-23 01:53:52 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-23 01:53:52 +0100 |
| commit | ffc23dc68649c19dfac34ff4c0b4211fc72e8523 (patch) | |
| tree | 0bb2014230fbf316ad46f913764ee46a89a942d6 /src/components/settings/settings.js | |
| parent | b939f70d17697eaa5721ac86bcfcd2fc55871df9 (diff) | |
| parent | c338940084d7311844d2dd5c11c92f95ab47f486 (diff) | |
Merge branch 'hae/pleroma-fe-develop' into develop
Diffstat (limited to 'src/components/settings/settings.js')
| -rw-r--r-- | src/components/settings/settings.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 61236af2..c1b88f82 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -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 }) } } } |
