aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/attachment/attachment.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 561a5a98..fe28e5f3 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -63,10 +63,11 @@ const Attachment = {
return this.type === 'html' || this.type === 'audio'
},
useModal () {
- return this.size === 'hide' ? ['image', 'video', 'audio']
+ const modalTypes = this.size === 'hide' ? ['image', 'video', 'audio']
: this.mergedConfig.playVideosInModal
? ['image', 'video']
: ['image']
+ return modalTypes.includes(this.type)
},
...mapGetters(['mergedConfig'])
},