change owner query and comment out transition
This commit is contained in:
parent
12ac35a123
commit
4ed60c5fbb
|
@ -23,8 +23,8 @@ Route = TravisRoute.extend
|
||||||
login = transition.params.owner.owner
|
login = transition.params.owner.owner
|
||||||
|
|
||||||
message = if error.status == 404
|
message = if error.status == 404
|
||||||
@transitionTo('/404')
|
# @transitionTo('/404')
|
||||||
# "Couldn't find an owner with login \"#{login}\""
|
"Couldn't find an owner with login \"#{login}\""
|
||||||
else
|
else
|
||||||
"There was an error while loading data, please try again."
|
"There was an error while loading data, please try again."
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,6 @@ Route = TravisRoute.extend
|
||||||
options = {}
|
options = {}
|
||||||
if @get('auth.signedIn')
|
if @get('auth.signedIn')
|
||||||
options.headers = { Authorization: "token #{@auth.token()}" }
|
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`
|
`export default Route`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user