gallery now supports flash, fixes for flash component. refactored media modal

This commit is contained in:
Henry Jameson 2021-06-18 02:01:37 +03:00
parent e654fead23
commit 90345f158f
8 changed files with 36 additions and 28 deletions

View file

@ -72,12 +72,6 @@ const StatusContent = {
Gallery,
LinkPreview,
StatusBody
},
methods: {
setMedia () {
const attachments = this.status.attachments
return () => this.$store.dispatch('setMedia', attachments)
}
}
}

View file

@ -16,8 +16,8 @@
v-if="status.attachments.length !== 0"
:nsfw="nsfwClickthrough"
:attachments="status.attachments"
:set-media="setMedia()"
:size="attachmentSize"
@setMedia="onMedia"
@play="$emit('mediaplay', attachment.id)"
@pause="$emit('mediapause', attachment.id)"
/>