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
|
@ -13,6 +13,7 @@ const Attachment = {
|
|||
return {
|
||||
nsfwImage,
|
||||
hideNsfwLocal: this.$store.state.config.hideNsfw,
|
||||
preloadNsfwImage: this.$store.state.config.preloadNsfwImage,
|
||||
loopVideo: this.$store.state.config.loopVideo,
|
||||
showHidden: false,
|
||||
loading: false,
|
||||
|
@ -27,7 +28,7 @@ const Attachment = {
|
|||
return fileTypeService.fileType(this.attachment.mimetype)
|
||||
},
|
||||
hidden () {
|
||||
return this.nsfw && this.hideNsfwLocal && !this.showHidden
|
||||
return (this.nsfw && this.hideNsfwLocal && !this.showHidden)
|
||||
},
|
||||
isEmpty () {
|
||||
return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue