Fix sync button
This commit is contained in:
parent
43e9af77d5
commit
00ccb07a49
|
@ -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()
|
||||
|
||||
|
|
|
@ -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)}"]()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user