aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment/attachment.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-01-31 21:19:41 +0200
committershpuld <shp@cock.li>2019-01-31 21:19:41 +0200
commita8c6b3f538dc97b93411213f72e90c16156f3926 (patch)
tree6df71f157130f7baea10a2296a7f85740002d749 /src/components/attachment/attachment.js
parentfbe7af3d56e4e6e168208a511bd7cd4e4e4e7a40 (diff)
Change video playing default without bothering making it an instance configurable
Diffstat (limited to 'src/components/attachment/attachment.js')
-rw-r--r--src/components/attachment/attachment.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 47939852..3b7f08dc 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -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
) {