From 2308ab7a9f0e3efcc1c3a21626aaffc6207cf1aa Mon Sep 17 00:00:00 2001 From: Elias Werberich Date: Tue, 27 Mar 2018 12:16:12 +0000 Subject: 'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choices --- app/controllers/root_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/controllers/root_controller.rb') diff --git a/app/controllers/root_controller.rb b/app/controllers/root_controller.rb index 8acefd58e77..651b82f04f4 100644 --- a/app/controllers/root_controller.rb +++ b/app/controllers/root_controller.rb @@ -42,6 +42,10 @@ class RootController < Dashboard::ProjectsController redirect_to(dashboard_groups_path) when 'todos' redirect_to(dashboard_todos_path) + when 'issues' + redirect_to(issues_dashboard_path(assignee_id: current_user.id)) + when 'merge_requests' + redirect_to(merge_requests_dashboard_path(assignee_id: current_user.id)) end end -- cgit v1.2.3