remove logic again because api takes care of it now
This commit is contained in:
parent
e80c022874
commit
7d6dd75bdf
|
@ -16,16 +16,7 @@ Route = TravisRoute.extend
|
||||||
|
|
||||||
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100", options).then (response) ->
|
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100", options).then (response) ->
|
||||||
allTheBranches = response.branches
|
allTheBranches = response.branches
|
||||||
|
|
||||||
defaultBranch = allTheBranches.filter (item, index) ->
|
|
||||||
item if item.repository.default_branch['@href'] == item['@href']
|
|
||||||
|
|
||||||
allTheBranches
|
allTheBranches
|
||||||
unless defaultBranch.length == 1
|
|
||||||
$.ajax("#{apiEndpoint}/v3/repo/#{repoId}/branches?include=build.commit&limit=100&offset=1", options).then (response) ->
|
|
||||||
allTheBranches = allTheBranches.concat(response.branches)
|
|
||||||
|
|
||||||
allTheBranches
|
|
||||||
|
|
||||||
activate: () ->
|
activate: () ->
|
||||||
$('.tab.tabs--main li').removeClass('active')
|
$('.tab.tabs--main li').removeClass('active')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user