Expand all jobs from queue on one click

This commit is contained in:
Piotr Sarnacki 2012-11-28 00:20:58 +01:00
parent afa1d07fbe
commit 9c8f93f705
2 changed files with 5 additions and 2 deletions

View File

@ -21,7 +21,7 @@
{{#if queue.isMore}}
<a {{action loadMoreJobs this.queue target="view"}} class="show-more-jobs">
{{queue.leftLength}} more jobs - show more
{{queue.leftLength}} more jobs - show all
</a>
{{/if}}
</li>

View File

@ -40,7 +40,10 @@
loadMoreJobs: (event) ->
queue = event.context
queue.incrementProperty('limit', 20)
# nasty hack to not have to implement showAll for
# limitedArray
# TODO: implement it properly later
queue.incrementProperty('limit', 1000000)
didInsertElement: ->
queues = for queue in Travis.QUEUES