Expand all jobs from queue on one click
This commit is contained in:
parent
afa1d07fbe
commit
9c8f93f705
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user