travis-web/assets/scripts/app/controllers/current_user.coffee
Piotr Sarnacki 33bce774a3 Add first_sync template
First sync will be displayed when user is logged in and first sync is
still taking place
2013-08-05 03:29:19 +02:00

9 lines
303 B
CoffeeScript

Travis.CurrentUserController = Em.ObjectController.extend
sync: ->
@get('content').sync()
syncingDidChange: (->
if (user = @get('content')) && user.get('isSyncing') && !user.get('syncedAt')
@container.lookup('router:main').send('renderFirstSync')
).observes('isSyncing', 'content')