Add fallback for setting title in account

This commit is contained in:
Piotr Sarnacki 2015-03-27 08:48:49 +01:00
parent 32bdc69e94
commit 9133555efd

View File

@ -2,7 +2,10 @@
Route = TravisRoute.extend
titleToken: (model) ->
model.get('name') || model.get('login')
if model
model.get('name') || model.get('login')
else
'Account'
setupController: (controller, account) ->
@_super.apply this, arguments