Leave currentUser connected to controller, but check for id
This commit is contained in:
parent
1b01581fb4
commit
d590b06d17
|
@ -4,7 +4,7 @@ Travis.ReposController = Ember.ArrayController.extend
|
|||
defaultTab: 'recent'
|
||||
isLoadedBinding: 'content.isLoaded'
|
||||
needs: ['currentUser', 'repo']
|
||||
currentUserBinding: 'controllers.currentUser.user'
|
||||
currentUserBinding: 'controllers.currentUser'
|
||||
selectedRepo: (->
|
||||
# we need to observe also repo.content here, because we use
|
||||
# ObjectProxy in repo controller
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
ReposListTabsView: Travis.View.extend
|
||||
templateName: 'repos/list/tabs'
|
||||
tabBinding: 'controller.tab'
|
||||
currentUserBinding: 'controller.currentUser'
|
||||
currentUserBinding: 'controller.currentUser.id'
|
||||
|
||||
activate: (name) ->
|
||||
@get('controller').activate(name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user