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/attachment | |
| parent | e654fead23ebb457f81e8642c65e1f3e98ee0027 (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.js | 9 |
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() |
