added config for preload and made attachment responsive to it
This commit is contained in:
parent
b195ce12e1
commit
7b4e08dd93
6 changed files with 13 additions and 3 deletions
|
@ -14,6 +14,7 @@ const settings = {
|
|||
hideAttachmentsInConvLocal: user.hideAttachmentsInConv,
|
||||
hideNsfwLocal: user.hideNsfw,
|
||||
hideISPLocal: user.hideISP,
|
||||
preloadNsfwImage: user.preloadNsfwImage,
|
||||
hidePostStatsLocal: typeof user.hidePostStats === 'undefined'
|
||||
? instance.hidePostStats
|
||||
: user.hidePostStats,
|
||||
|
@ -84,6 +85,9 @@ const settings = {
|
|||
hideNsfwLocal (value) {
|
||||
this.$store.dispatch('setOption', { name: 'hideNsfw', value })
|
||||
},
|
||||
preloadNsfwImage(value) {
|
||||
this.$store.dispatch('setOption', { name: 'preloadNsfwImage', value })
|
||||
},
|
||||
hideISPLocal (value) {
|
||||
this.$store.dispatch('setOption', { name: 'hideISP', value })
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue