diff options
| author | Shpuld Shpludson <shp@cock.li> | 2019-02-27 14:38:58 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2019-02-27 14:38:58 +0000 |
| commit | 95fb768b5a1200cd3e4317c54293b46aea9c8655 (patch) | |
| tree | 115e50b5c31f56d80f235dee81a0ca5241236f1c /src/components/settings/settings.js | |
| parent | d5348c13ff542ae77c3c87e381dc54f5e7619acc (diff) | |
Fix #399 Make max attachments configurable
Diffstat (limited to 'src/components/settings/settings.js')
| -rw-r--r-- | src/components/settings/settings.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 23c1acdb..6e2dff7b 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -12,6 +12,7 @@ const settings = { return { hideAttachmentsLocal: user.hideAttachments, hideAttachmentsInConvLocal: user.hideAttachmentsInConv, + maxThumbnails: user.maxThumbnails, hideNsfwLocal: user.hideNsfw, useOneClickNsfw: user.useOneClickNsfw, hideISPLocal: user.hideISP, @@ -186,6 +187,10 @@ const settings = { }, useContainFit (value) { this.$store.dispatch('setOption', { name: 'useContainFit', value }) + }, + maxThumbnails (value) { + value = this.maxThumbnails = Math.floor(Math.max(value, 0)) + this.$store.dispatch('setOption', { name: 'maxThumbnails', value }) } } } |
