Fix closing of notifications by clicking on it not working

This commit is contained in:
kolaente 2020-04-14 23:09:18 +02:00
parent bb84d03776
commit cc02fc82fc
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -1,7 +1,7 @@
<template>
<notifications position="bottom left">
<template slot="body" slot-scope="props">
<div :class="['vue-notification-template', 'vue-notification', props.item.type]">
<div :class="['vue-notification-template', 'vue-notification', props.item.type]" @click="close(props)">
<div
v-if="props.item.title"
class="notification-title"
@ -28,7 +28,12 @@
<script>
export default {
name: 'notification'
name: 'notification',
methods: {
close(props) {
props.close()
},
},
}
</script>