renamed config to preload images and add ident to config

This commit is contained in:
ValD 2018-12-12 03:42:29 +05:30
parent 7b4e08dd93
commit 139659d42c
6 changed files with 13 additions and 11 deletions
src/components/settings

View file

@ -14,7 +14,7 @@ const settings = {
hideAttachmentsInConvLocal: user.hideAttachmentsInConv,
hideNsfwLocal: user.hideNsfw,
hideISPLocal: user.hideISP,
preloadNsfwImage: user.preloadNsfwImage,
preloadImage: user.preloadImage,
hidePostStatsLocal: typeof user.hidePostStats === 'undefined'
? instance.hidePostStats
: user.hidePostStats,
@ -85,8 +85,8 @@ const settings = {
hideNsfwLocal (value) {
this.$store.dispatch('setOption', { name: 'hideNsfw', value })
},
preloadNsfwImage(value) {
this.$store.dispatch('setOption', { name: 'preloadNsfwImage', value })
preloadImage(value) {
this.$store.dispatch('setOption', { name: 'preloadImage', value })
},
hideISPLocal (value) {
this.$store.dispatch('setOption', { name: 'hideISP', value })