diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-23 00:04:47 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-23 00:04:47 +0100 |
| commit | 7c0f3ea666a866a3bb1f2e8da161ae69901e519b (patch) | |
| tree | f7343bf4f875aa64b9a597aefffc9e2f2cc270c9 /src/components/settings/settings.js | |
| parent | 0e1ab69c33f155865adc27d940a2542ffdcec30a (diff) | |
Add setting to hide all attachments.
Diffstat (limited to 'src/components/settings/settings.js')
| -rw-r--r-- | src/components/settings/settings.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index f979e7ab..61236af2 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -1,8 +1,18 @@ import StyleSwitcher from '../style_switcher/style_switcher.vue' const settings = { + data () { + return { + hideAttachmentsLocal: this.$store.state.config.hideAttachments + } + }, components: { StyleSwitcher + }, + watch: { + hideAttachmentsLocal (value) { + this.$store.dispatch('setOption', { name: 'hideAttachments', value }) + } } } |
