aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_content
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-06-18 02:01:37 +0300
committerHenry Jameson <me@hjkos.com>2021-06-18 02:03:38 +0300
commit90345f158ff2eb12e619dbd7406f2fa81c379637 (patch)
treedfb6525618c641cfe94b1b342de36e8a280c6cfb /src/components/status_content
parente654fead23ebb457f81e8642c65e1f3e98ee0027 (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.js6
-rw-r--r--src/components/status_content/status_content.vue2
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)"
/>