Files
habitica/website/client/src/components/header/notifications/groupTaskApproved.vue
T
Matteo Pagliazzi e0e9811ab6 lint common
2019-10-09 20:08:36 +02:00

28 lines
600 B
Vue

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