Skip to content
Snippets Groups Projects
Commit 4d25be7c authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

fix modal types check being broken

parent 150516df
Branches
No related tags found
No related merge requests found
......@@ -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'])
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment