aboutsummaryrefslogtreecommitdiff
path: root/src/components/attachment
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/attachment
parente654fead23ebb457f81e8642c65e1f3e98ee0027 (diff)
gallery now supports flash, fixes for flash component. refactored media modal
Diffstat (limited to 'src/components/attachment')
-rw-r--r--src/components/attachment/attachment.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js
index 06928ca6..3ea96a7a 100644
--- a/src/components/attachment/attachment.js
+++ b/src/components/attachment/attachment.js
@@ -113,13 +113,14 @@ const Attachment = {
},
openModal (event) {
if (this.useModal) {
- this.setMedia()
- this.$store.dispatch('setCurrent', this.attachment)
+ this.$emit('setMedia')
+ this.$store.dispatch('setCurrentMedia', this.attachment)
}
},
openModalForce (event) {
- this.setMedia()
- this.$store.dispatch('setCurrent', this.attachment)
+ this.$emit('setMedia')
+ this.$store.dispatch('setCurrentMedia', this.attachment)
+ },
},
stopFlash () {
this.$refs.flash.closePlayer()