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'
|
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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user