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
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 2 deletions

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>