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'
|
return this.type === 'html' || this.type === 'audio'
|
||||||
},
|
},
|
||||||
useModal () {
|
useModal () {
|
||||||
return this.size === 'hide' ? ['image', 'video', 'audio']
|
const modalTypes = this.size === 'hide' ? ['image', 'video', 'audio']
|
||||||
: this.mergedConfig.playVideosInModal
|
: this.mergedConfig.playVideosInModal
|
||||||
? ['image', 'video']
|
? ['image', 'video']
|
||||||
: ['image']
|
: ['image']
|
||||||
|
return modalTypes.includes(this.type)
|
||||||
},
|
},
|
||||||
...mapGetters(['mergedConfig'])
|
...mapGetters(['mergedConfig'])
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue