Leave currentUser connected to controller, but check for id

This commit is contained in:
Piotr Sarnacki 2013-03-15 10:28:35 +01:00
parent 1b01581fb4
commit d590b06d17
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)