gallery now supports flash, fixes for flash component. refactored media modal

This commit is contained in:
Henry Jameson 2021-06-18 02:01:37 +03:00
parent e654fead23
commit 90345f158f
8 changed files with 36 additions and 28 deletions

View file

@ -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()