habitica-self-host/website/client/src/components/header/notifications/groupTaskAssigned.vue
Matteo Pagliazzi 07349c70bc pug to html
2019-10-12 16:33:05 +02:00

30 lines
534 B
Vue

<template>
<base-notification
:can-remove="canRemove"
:has-icon="false"
:notification="notification"
:read-after-click="true"
@click="action"
>
<div
slot="content"
v-html="notification.data.message"
></div>
</base-notification>
</template>
<script>
import BaseNotification from './base';
export default {
components: {
BaseNotification,
},
props: ['notification', 'canRemove'],
methods: {
action () {
this.$router.push({ name: 'tasks' });
},
},
};
</script>