Insert "my tasks" link in user menu

This commit is contained in:
2018-04-27 13:36:04 +02:00
parent 258a280784
commit 3719ce0896
2 changed files with 16 additions and 0 deletions

View File

@@ -283,6 +283,21 @@ class SingleTaskController extends Controller
return $form;
}
/**
*
* @return Response
* @Route(
* "/{_locale}/task/single-task/list/my",
* options={ "menus": { "user": { "order": -10, "label": "My tasks", "icon": "tasks" } } }
* )
*/
public function myTasksAction()
{
return $this->redirectToRoute('chill_task_singletask_list', [
'user_id' => $this->getUser()->getId()
]);
}
/**
* @Route(