Expand all jobs from queue on one click
This commit is contained in:
parent
afa1d07fbe
commit
9c8f93f705
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
{{#if queue.isMore}}
|
{{#if queue.isMore}}
|
||||||
<a {{action loadMoreJobs this.queue target="view"}} class="show-more-jobs">
|
<a {{action loadMoreJobs this.queue target="view"}} class="show-more-jobs">
|
||||||
{{queue.leftLength}} more jobs - show more
|
{{queue.leftLength}} more jobs - show all
|
||||||
</a>
|
</a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -40,7 +40,10 @@
|
||||||
|
|
||||||
loadMoreJobs: (event) ->
|
loadMoreJobs: (event) ->
|
||||||
queue = event.context
|
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: ->
|
didInsertElement: ->
|
||||||
queues = for queue in Travis.QUEUES
|
queues = for queue in Travis.QUEUES
|
||||||
|
|
Loading…
Reference in New Issue
Block a user