Files
habitica/website/client/src/components/header/notifications/groupTaskNeedsWork.vue
T
Matteo Pagliazzi b44fbdcb14 old client structure
2019-10-01 11:44:38 +02:00

27 lines
604 B
Vue

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