Merge pull request #400 from travis-ci/rkh-fix-owner-page-for-users

owner page: fix API query to eager load repositories for all owners, …
This commit is contained in:
Lisa P 2015-10-15 10:09:09 +02:00
commit a713a5969f

View File

@ -13,7 +13,7 @@ Route = TravisRoute.extend
options = {}
if @get('auth.signedIn')
options.headers = { Authorization: "token #{@auth.token()}" }
$.ajax(config.apiEndpoint + "/v3/owner/#{transition.params.owner.owner}?include=organization.repositories,repository.default_branch,build.commit", options).then (response) ->
$.ajax(config.apiEndpoint + "/v3/owner/#{transition.params.owner.owner}?include=owner.repositories,repository.default_branch,build.commit", options).then (response) ->
response
`export default Route`