seepur/resources/scripts/applications/shared/components/Notification.vue

21 lines
393 B
Vue
Raw Normal View History

2020-04-12 14:25:42 +00:00
<template>
<div
:class="['notification','notification-fade' ,'is-light', `is-${notification.level || 'info'}`]"
>
<button class="delete" @click="close()"></button>
{{notification.message}}
</div>
</template>
<script lang="ts">
export default {
name: "Notification",
props: ["notification"],
methods: {
close() {
this.$emit("onClose");
}
}
};
</script>