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' defaultTab: 'recent'
isLoadedBinding: 'content.isLoaded' isLoadedBinding: 'content.isLoaded'
needs: ['currentUser', 'repo'] needs: ['currentUser', 'repo']
currentUserBinding: 'controllers.currentUser.user' currentUserBinding: 'controllers.currentUser'
selectedRepo: (-> selectedRepo: (->
# we need to observe also repo.content here, because we use # we need to observe also repo.content here, because we use
# ObjectProxy in repo controller # ObjectProxy in repo controller

View File

@ -24,7 +24,7 @@
ReposListTabsView: Travis.View.extend ReposListTabsView: Travis.View.extend
templateName: 'repos/list/tabs' templateName: 'repos/list/tabs'
tabBinding: 'controller.tab' tabBinding: 'controller.tab'
currentUserBinding: 'controller.currentUser' currentUserBinding: 'controller.currentUser.id'
activate: (name) -> activate: (name) ->
@get('controller').activate(name) @get('controller').activate(name)