use active in the api query
This commit is contained in:
parent
ab9697892f
commit
e8c719587f
|
@ -31,7 +31,7 @@ Controller = Ember.Controller.extend
|
||||||
data = @get('model')
|
data = @get('model')
|
||||||
|
|
||||||
repos = data.repositories.filter (item, index) ->
|
repos = data.repositories.filter (item, index) ->
|
||||||
if item.active && item.default_branch.last_build
|
if item.default_branch.last_build
|
||||||
item
|
item
|
||||||
repos.sortBy('default_branch.last_build.finished_at').reverse()
|
repos.sortBy('default_branch.last_build.finished_at').reverse()
|
||||||
|
|
||||||
|
@ -41,10 +41,9 @@ Controller = Ember.Controller.extend
|
||||||
data = @get('model')
|
data = @get('model')
|
||||||
|
|
||||||
repos = data.repositories.filter (item, index) ->
|
repos = data.repositories.filter (item, index) ->
|
||||||
if item.active
|
if item.default_branch.last_build != null
|
||||||
if item.default_branch.last_build != null
|
if item.default_branch.last_build.state == 'started'
|
||||||
if item.default_branch.last_build.state == 'started'
|
item
|
||||||
item
|
|
||||||
repos
|
repos
|
||||||
|
|
||||||
).property('model')
|
).property('model')
|
||||||
|
|
|
@ -9,7 +9,7 @@ Route = TravisRoute.extend
|
||||||
model: (params) ->
|
model: (params) ->
|
||||||
owner = {}
|
owner = {}
|
||||||
|
|
||||||
$.get("https://api-staging.travis-ci.org/v3/owner/#{params.owner}?include=user.repositories,organization.repositories,build.commit").then( (data) ->
|
$.get("https://api-staging.travis-ci.org/v3/owner/#{params.owner}?include=user.repositories,organization.repositories,build.commit,repository.active").then( (data) ->
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user