forked from AkkomaGang/akkoma-fe
fix modal types check being broken
This commit is contained in:
parent
150516df4e
commit
4d25be7cb3
1 changed files with 2 additions and 1 deletions
|
@ -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'])
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue