Fix sync button

This commit is contained in:
Piotr Sarnacki 2014-06-17 16:39:21 +02:00
parent 43e9af77d5
commit 00ccb07a49
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
Travis.AccountController = Ember.ObjectController.extend
allHooks: []
needs: ['currentUser']
userBinding: 'controllers.currentUser'
init: ->
@_super.apply this, arguments
@ -33,3 +35,8 @@ Travis.AccountController = Ember.ObjectController.extend
showPublicReposHint: (->
Travis.config.show_repos_hint == 'public'
) .property()
actions:
sync: ->
@get('user').sync()

View File

@ -5,9 +5,6 @@ Travis.ProfileController = Travis.Controller.extend
userBinding: 'controllers.currentUser'
accountBinding: 'controllers.account'
sync: ->
@get('user').sync()
activate: (action, params) ->
this["view#{$.camelize(action)}"]()