Making the ladder tab reload when social network friends load. See #1196.

This commit is contained in:
Scott Erickson 2014-07-04 17:32:16 -07:00
parent ca8394621d
commit 1ce55e356c

View file

@ -97,6 +97,7 @@ module.exports = class LadderTabView extends CocoView
friend.otherTeam = if friend.team is 'humans' then 'ogres' else 'humans' friend.otherTeam = if friend.team is 'humans' then 'ogres' else 'humans'
friend.imageSource = "http://graph.facebook.com/#{friend.facebookID}/picture" friend.imageSource = "http://graph.facebook.com/#{friend.facebookID}/picture"
@facebookFriendSessions = result @facebookFriendSessions = result
@render() # because the ladder tab renders before waiting for fb to finish
# GOOGLE PLUS # GOOGLE PLUS
@ -139,6 +140,7 @@ module.exports = class LadderTabView extends CocoView
friend.otherTeam = if friend.team is 'humans' then 'ogres' else 'humans' friend.otherTeam = if friend.team is 'humans' then 'ogres' else 'humans'
friend.imageSource = friendsMap[friend.gplusID].image.url friend.imageSource = friendsMap[friend.gplusID].image.url
@gplusFriendSessions = result @gplusFriendSessions = result
@render() # because the ladder tab renders before waiting for gplus to finish
# LADDER LOADING # LADDER LOADING