diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-18 02:01:37 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-18 02:03:38 +0300 |
| commit | 90345f158ff2eb12e619dbd7406f2fa81c379637 (patch) | |
| tree | dfb6525618c641cfe94b1b342de36e8a280c6cfb /src/components/status_content | |
| parent | e654fead23ebb457f81e8642c65e1f3e98ee0027 (diff) | |
gallery now supports flash, fixes for flash component. refactored media modal
Diffstat (limited to 'src/components/status_content')
| -rw-r--r-- | src/components/status_content/status_content.js | 6 | ||||
| -rw-r--r-- | src/components/status_content/status_content.vue | 2 |
2 files changed, 1 insertions, 7 deletions
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)" /> |
