Skip to content
Snippets Groups Projects

Fix #399 Make max attachments configurable

Merged Fix #399 Make max attachments configurable
1 unresolved thread
Merged Shpuld Shpludson requested to merge feat/max-attachments-configurable into develop
1 unresolved thread
6 files
+ 21
3
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -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 })
}
}
}
Loading