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
No related branches found
No related tags found
2 merge requests!12172.1.0 into master,!1161media description authoring v3
......@@ -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.
Finish editing this message first!
Please register or to comment