Small fixes for team members

stable
Jesús Espino 2014-11-28 08:25:32 +01:00
parent 66d00ba9f3
commit 8e53cee768
1 changed files with 6 additions and 4 deletions

View File

@ -37,12 +37,14 @@ class TeamController extends mixOf(taiga.Controller, taiga.PageMixin)
"$tgResources",
"$routeParams",
"$q",
"$location",
"$tgNavUrls",
"$appTitle",
"$tgAuth"
"$tgAuth",
"tgLoader"
]
constructor: (@scope, @rootscope, @repo, @rs, @params, @q, @appTitle, @auth, tgLoader) ->
constructor: (@scope, @rootscope, @repo, @rs, @params, @q, @location, @navUrls, @appTitle, @auth, tgLoader) ->
@scope.sectionName = "Team"
promise = @.loadInitialData()
@ -80,8 +82,8 @@ class TeamController extends mixOf(taiga.Controller, taiga.PageMixin)
return membership
for membership in @scope.memberships
if not membership.user.photo?
membership.user.photo = "/images/unnamed.png"
if not membership.photo?
membership.photo = "/images/unnamed.png"
return data