Use model property instead of content on controllers
This commit is contained in:
parent
820c4b8377
commit
15283b0294
|
@ -18,7 +18,7 @@ Travis.Route = Ember.Route.extend
|
||||||
@_super.apply(this, arguments)
|
@_super.apply(this, arguments)
|
||||||
|
|
||||||
signedIn: ->
|
signedIn: ->
|
||||||
@controllerFor('currentUser').get('content')
|
@controllerFor('currentUser').get('model')
|
||||||
|
|
||||||
needsAuth: (->
|
needsAuth: (->
|
||||||
# on pro, we need to auth on every route
|
# on pro, we need to auth on every route
|
||||||
|
@ -237,7 +237,7 @@ Travis.AbstractBuildsRoute = Travis.Route.extend
|
||||||
|
|
||||||
contentDidChange: ->
|
contentDidChange: ->
|
||||||
path = @get('path')
|
path = @get('path')
|
||||||
@controllerFor('builds').set('content', @controllerFor('repo').get(path))
|
@controllerFor('builds').set('model', @controllerFor('repo').get(path))
|
||||||
|
|
||||||
path: (->
|
path: (->
|
||||||
type = @get('contentType')
|
type = @get('contentType')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user