fix(teams): take user to relevant group from task assignment click
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user