Fix sync button
This commit is contained in:
parent
43e9af77d5
commit
00ccb07a49
|
@ -1,5 +1,7 @@
|
||||||
Travis.AccountController = Ember.ObjectController.extend
|
Travis.AccountController = Ember.ObjectController.extend
|
||||||
allHooks: []
|
allHooks: []
|
||||||
|
needs: ['currentUser']
|
||||||
|
userBinding: 'controllers.currentUser'
|
||||||
|
|
||||||
init: ->
|
init: ->
|
||||||
@_super.apply this, arguments
|
@_super.apply this, arguments
|
||||||
|
@ -33,3 +35,8 @@ Travis.AccountController = Ember.ObjectController.extend
|
||||||
showPublicReposHint: (->
|
showPublicReposHint: (->
|
||||||
Travis.config.show_repos_hint == 'public'
|
Travis.config.show_repos_hint == 'public'
|
||||||
) .property()
|
) .property()
|
||||||
|
|
||||||
|
actions:
|
||||||
|
sync: ->
|
||||||
|
@get('user').sync()
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,6 @@ Travis.ProfileController = Travis.Controller.extend
|
||||||
userBinding: 'controllers.currentUser'
|
userBinding: 'controllers.currentUser'
|
||||||
accountBinding: 'controllers.account'
|
accountBinding: 'controllers.account'
|
||||||
|
|
||||||
sync: ->
|
|
||||||
@get('user').sync()
|
|
||||||
|
|
||||||
activate: (action, params) ->
|
activate: (action, params) ->
|
||||||
this["view#{$.camelize(action)}"]()
|
this["view#{$.camelize(action)}"]()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user