change owner query and comment out transition

This commit is contained in:
Lisa P 2015-10-05 22:50:09 +02:00
parent 12ac35a123
commit 4ed60c5fbb
2 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ Route = TravisRoute.extend
login = transition.params.owner.owner
message = if error.status == 404
@transitionTo('/404')
# "Couldn't find an owner with login \"#{login}\""
# @transitionTo('/404')
"Couldn't find an owner with login \"#{login}\""
else
"There was an error while loading data, please try again."

View File

@ -13,6 +13,6 @@ Route = TravisRoute.extend
options = {}
if @get('auth.signedIn')
options.headers = { Authorization: "token #{@auth.token()}" }
$.ajax(config.apiEndpoint + "/v3/repos?repository.active=true&include=user.repositories,organization.repositories,build.commit", options)
$.ajax(config.apiEndpoint + "/v3/owner/#{params.owner}", options)
`export default Route`