mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Making the ladder tab reload when social network friends load. See #1196.
This commit is contained in:
parent
ca8394621d
commit
1ce55e356c
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ module.exports = class LadderTabView extends CocoView
|
|||
friend.otherTeam = if friend.team is 'humans' then 'ogres' else 'humans'
|
||||
friend.imageSource = "http://graph.facebook.com/#{friend.facebookID}/picture"
|
||||
@facebookFriendSessions = result
|
||||
@render() # because the ladder tab renders before waiting for fb to finish
|
||||
|
||||
# GOOGLE PLUS
|
||||
|
||||
|
@ -139,6 +140,7 @@ module.exports = class LadderTabView extends CocoView
|
|||
friend.otherTeam = if friend.team is 'humans' then 'ogres' else 'humans'
|
||||
friend.imageSource = friendsMap[friend.gplusID].image.url
|
||||
@gplusFriendSessions = result
|
||||
@render() # because the ladder tab renders before waiting for gplus to finish
|
||||
|
||||
# LADDER LOADING
|
||||
|
||||
|
|
Loading…
Reference in a new issue