Fix toggling hooks on profile page

This commit is contained in:
Piotr Sarnacki 2014-12-23 20:59:56 +01:00
parent 66be22af68
commit 385287489c

View File

@ -11,6 +11,10 @@ Travis.AccountController = Ember.ObjectController.extend
self.reloadHooks() self.reloadHooks()
)) ))
actions:
sync: ->
@get('user').sync()
toggle: (hook) -> toggle: (hook) ->
hook.toggle() hook.toggle()
@ -35,8 +39,3 @@ 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()