mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 13:18:53 +00:00
fix(teams): take user to relevant group from task assignment click
This commit is contained in:
parent
ca1dbd2fc4
commit
bf9a7ea7d9
2 changed files with 9 additions and 1 deletions
|
|
@ -23,7 +23,14 @@ export default {
|
|||
props: ['notification', 'canRemove'],
|
||||
methods: {
|
||||
action () {
|
||||
this.$router.push({ name: 'tasks' });
|
||||
if (this.notification.data.groupId) {
|
||||
this.$router.push({
|
||||
name: 'groupPlanDetailTaskInformation',
|
||||
params: { groupId: this.notification.data.groupId },
|
||||
});
|
||||
} else {
|
||||
this.$router.push({ name: 'tasks' });
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ api.assignTask = {
|
|||
if (user._id !== userToAssign._id) {
|
||||
userToAssign.addNotification('GROUP_TASK_ASSIGNED', {
|
||||
message: res.t('youHaveBeenAssignedTask', { managerName: userName, taskText }),
|
||||
groupId: group._id,
|
||||
taskId: task._id,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue