mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Add the resetPagination hook to search boxes across the app
This commit is contained in:
@@ -98,6 +98,7 @@
|
||||
<div>Allocations <span class="badge is-white">{{model.allocations.length}}</span></div>
|
||||
{{search-box
|
||||
searchTerm=(mut searchTerm)
|
||||
onChange=(action resetPagination)
|
||||
placeholder="Search allocations..."
|
||||
class="is-inline pull-right"
|
||||
inputClass="is-compact"}}
|
||||
|
||||
@@ -4,7 +4,12 @@
|
||||
{{else}}
|
||||
{{#if nodes.length}}
|
||||
<div class="content">
|
||||
<div>{{search-box searchTerm=(mut searchTerm) placeholder="Search clients..."}}</div>
|
||||
<div>
|
||||
{{search-box
|
||||
searchTerm=(mut searchTerm)
|
||||
onChange=(action resetPagination)
|
||||
placeholder="Search clients..."}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#list-pagination
|
||||
|
||||
@@ -5,7 +5,11 @@
|
||||
<div class="columns">
|
||||
{{#if filteredJobs.length}}
|
||||
<div class="column">
|
||||
{{search-box data-test-jobs-search searchTerm=(mut searchTerm) placeholder="Search jobs..."}}
|
||||
{{search-box
|
||||
data-test-jobs-search
|
||||
searchTerm=(mut searchTerm)
|
||||
onChange=(action resetPagination)
|
||||
placeholder="Search jobs..."}}
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="column is-centered">
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
{{search-box
|
||||
data-test-allocations-search
|
||||
searchTerm=(mut searchTerm)
|
||||
onChange=(action resetPagination)
|
||||
placeholder="Search allocations..."}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
{{search-box
|
||||
searchTerm=(mut searchTerm)
|
||||
placeholder="Search allocations..."
|
||||
onChange=(action resetPagination)
|
||||
class="is-inline pull-right"
|
||||
inputClass="is-compact"}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user