This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
seepur/resources/scripts/applications/shared/components/Notification.vue
2020-04-12 10:25:42 -04:00

20 lines
393 B
Vue

<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>