Query for repos on landing page right away
This commit is contained in:
parent
648d7579e4
commit
5f37bcb312
|
@ -26,13 +26,10 @@ Route = BasicRoute.extend
|
||||||
@set('letMoreReposThrough', true)
|
@set('letMoreReposThrough', true)
|
||||||
, 5000
|
, 5000
|
||||||
|
|
||||||
setTimeout =>
|
@store.find('build').then (builds) =>
|
||||||
unless repos.get('length')
|
repoIds = builds.mapBy('data.repo').uniq().slice(0, 3)
|
||||||
@store.find('build').then (builds) =>
|
@store.find('repo', ids: repoIds).then (reposFromRequest) ->
|
||||||
repoIds = builds.mapBy('data.repo').uniq().slice(0, 3)
|
repos.get('external').pushObjects reposFromRequest.toArray()
|
||||||
@store.find('repo', ids: repoIds).then (reposFromRequest) ->
|
|
||||||
repos.get('external').pushObjects reposFromRequest.toArray()
|
|
||||||
, 10000
|
|
||||||
|
|
||||||
@_super.apply this, arguments
|
@_super.apply this, arguments
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user