summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorElias Werberich <elias@werberich.de>2018-03-27 12:16:12 +0000
committerDouwe Maan <douwe@gitlab.com>2018-03-27 12:16:12 +0000
commit2308ab7a9f0e3efcc1c3a21626aaffc6207cf1aa (patch)
tree41cd53be894a970bb0521aa7c30cac5ae5a3e3f8 /app/controllers
parent463fe4062dacb5e124a24d245fb921b91f6d499b (diff)
downloadgitlab-ce-2308ab7a9f0e3efcc1c3a21626aaffc6207cf1aa.tar.gz
'Assigned Issues' and 'Assigned Merge Requests' as dashboard user choices
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/root_controller.rb4
1 files changed, 4 insertions, 0 deletions
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