Files
habitica/website/client/src/components/header/notifications/newStuff.vue
T
2019-10-12 17:05:15 +02:00

37 lines
703 B
Vue

<template>
<base-notification
:can-remove="canRemove"
:has-icon="true"
:notification="notification"
:read-after-click="true"
@click="action"
>
<div slot="content">
<div class="notification-bold-purple">
{{ $t('newBaileyUpdate') }}
</div>
<div>{{ notification.data.title }}</div>
</div>
<div
slot="icon"
class="npc_bailey"
></div>
</base-notification>
</template>
<script>
import BaseNotification from './base';
export default {
components: {
BaseNotification,
},
props: ['notification', 'canRemove'],
methods: {
action () {
this.$root.$emit('bv::show::modal', 'new-stuff');
},
},
};
</script>