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

Group similar conditionals

parent 8f598b5a
...@@ -92,13 +92,7 @@ class @UserTabs ...@@ -92,13 +92,7 @@ class @UserTabs
if action is 'activity' if action is 'activity'
@loadActivities(source) @loadActivities(source)
if action is 'groups' if action in ['groups', 'contributed', 'projects']
@loadTab(source, action)
if action is 'contributed'
@loadTab(source, action)
if action is 'projects'
@loadTab(source, action) @loadTab(source, action)
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