From 90345f158ff2eb12e619dbd7406f2fa81c379637 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 18 Jun 2021 02:01:37 +0300 Subject: gallery now supports flash, fixes for flash component. refactored media modal --- src/components/status_content/status_content.js | 6 ------ src/components/status_content/status_content.vue | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'src/components/status_content') diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js index 49f9d7f8..c085c992 100644 --- a/src/components/status_content/status_content.js +++ b/src/components/status_content/status_content.js @@ -72,12 +72,6 @@ const StatusContent = { Gallery, LinkPreview, StatusBody - }, - methods: { - setMedia () { - const attachments = this.status.attachments - return () => this.$store.dispatch('setMedia', attachments) - } } } diff --git a/src/components/status_content/status_content.vue b/src/components/status_content/status_content.vue index 0f999da6..a9511fbe 100644 --- a/src/components/status_content/status_content.vue +++ b/src/components/status_content/status_content.vue @@ -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)" /> -- cgit v1.2.3-70-g09d2