Change video playing default without bothering making it an instance configurable

This commit is contained in:
shpuld 2019-01-31 21:19:41 +02:00
parent fbe7af3d56
commit a8c6b3f538
7 changed files with 14 additions and 17 deletions

View file

@ -57,9 +57,9 @@ const Attachment = {
}
},
openModal (event) {
const modalTypes = this.$store.state.config.playVideosInline
? ['image']
: ['image', 'video']
const modalTypes = this.$store.state.config.playVideosInModal
? ['image', 'video']
: ['image']
if (fileTypeService.fileMatchesSomeType(modalTypes, this.attachment) ||
this.usePlaceHolder
) {