diff options
| author | ValD <maghtpol@gmail.com> | 2018-12-12 03:33:53 +0530 |
|---|---|---|
| committer | ValD <maghtpol@gmail.com> | 2018-12-12 03:33:53 +0530 |
| commit | 7b4e08dd93520e3dc1113d76e097b998d12b0f3c (patch) | |
| tree | fa444345288b8c051934bdb858b4785b1ab9760e /src/components/attachment/attachment.js | |
| parent | b195ce12e1fcf28ea1e74a1231f9a31dcf71af0b (diff) | |
added config for preload and made attachment responsive to it
Diffstat (limited to 'src/components/attachment/attachment.js')
| -rw-r--r-- | src/components/attachment/attachment.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 41730720..71ef2ca4 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -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' |
