aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-06 13:42:33 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-06 13:42:33 +0300
commit4d25be7cb35f86ba2abe883116dc6442c93a1d9d (patch)
treee6b8a235f9690000cdd388894987672146442a02 /src/components
parent150516df4e186a7f75bfa97377a5a2e89272c377 (diff)
fix modal types check being broken
Diffstat (limited to 'src/components')
-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'])
},