update event name

This commit is contained in:
taehoon 2019-10-21 20:52:31 -04:00
parent c23a87d8ff
commit 6084a5b6fe
5 changed files with 4 additions and 9 deletions

View file

@ -2,7 +2,7 @@
<Modal <Modal
v-if="showing" v-if="showing"
class="media-modal-view" class="media-modal-view"
@close="hide" @backdropClicked="hide"
> >
<img <img
v-if="type === 'image'" v-if="type === 'image'"

View file

@ -4,11 +4,6 @@ const Modal = {
type: Boolean, type: Boolean,
default: true default: true
} }
},
methods: {
closeModal () {
this.$emit('close')
}
} }
} }

View file

@ -3,7 +3,7 @@
v-show="isOpen" v-show="isOpen"
v-body-scroll-lock="isOpen" v-body-scroll-lock="isOpen"
class="modal-view" class="modal-view"
@click.self="closeModal" @click.self="$emit('backdropClicked')"
> >
<slot /> <slot />
</div> </div>

View file

@ -3,7 +3,7 @@
v-if="isLoggedIn && !resettingForm" v-if="isLoggedIn && !resettingForm"
:is-open="modalActivated" :is-open="modalActivated"
class="post-form-modal-view" class="post-form-modal-view"
@close="closeModal" @backdropClicked="closeModal"
> >
<div class="post-form-modal-panel panel"> <div class="post-form-modal-panel panel">
<div class="panel-heading"> <div class="panel-heading">

View file

@ -1,7 +1,7 @@
<template> <template>
<Modal <Modal
v-if="isOpen" v-if="isOpen"
@close="closeModal" @backdropClicked="closeModal"
> >
<div class="user-reporting-panel panel"> <div class="user-reporting-panel panel">
<div class="panel-heading"> <div class="panel-heading">