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
v-if="showing"
class="media-modal-view"
@close="hide"
@backdropClicked="hide"
>
<img
v-if="type === 'image'"

View File

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

View File

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

View File

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

View File

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