Commit 2b9e5c99 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Group similar conditionals

parent 8f598b5a
......@@ -92,13 +92,7 @@ class @UserTabs
if action is 'activity'
@loadActivities(source)
if action is 'groups'
@loadTab(source, action)
if action is 'contributed'
@loadTab(source, action)
if action is 'projects'
if action in ['groups', 'contributed', 'projects']
@loadTab(source, action)
loadTab: (source, action) ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment