Fix toggling hooks on profile page
This commit is contained in:
parent
66be22af68
commit
385287489c
|
@ -11,8 +11,12 @@ Travis.AccountController = Ember.ObjectController.extend
|
||||||
self.reloadHooks()
|
self.reloadHooks()
|
||||||
))
|
))
|
||||||
|
|
||||||
toggle: (hook) ->
|
actions:
|
||||||
hook.toggle()
|
sync: ->
|
||||||
|
@get('user').sync()
|
||||||
|
|
||||||
|
toggle: (hook) ->
|
||||||
|
hook.toggle()
|
||||||
|
|
||||||
reloadHooks: ->
|
reloadHooks: ->
|
||||||
if login = @get('login')
|
if login = @get('login')
|
||||||
|
@ -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()
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user