Bring back refreshUserData when setting user data

User data needs to be refreshed on sign in, otherwise we don't have
fresh data regarding isSyncing property and other fields which can
change between refreshing page.
This commit is contained in:
Piotr Sarnacki 2014-06-19 14:32:48 +02:00
parent 2fd1af29ec
commit a64c800423

View File

@ -64,6 +64,7 @@ window.Auth = Ember.Object.extend
@set('state', 'signed-in')
Travis.trigger('user:signed_in', data.user)
@sendToApp('afterSignIn')
@refreshUserData(data.user)
refreshUserData: (user) ->
Travis.ajax.get "/users/#{user.id}", (data) =>