28 lines
600 B
Vue
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>
|