Skip to content

Commit

Permalink
Step 12.19: Add searchText to subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent 189a5f9 commit 8f59060
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions imports/ui/components/partiesList/partiesList.js
Expand Up @@ -22,11 +22,13 @@ class PartiesList {
this.sort = {
name: 1
};
this.searchText = '';

this.subscribe('parties', () => [{
limit: parseInt(this.perPage),
skip: parseInt((this.getReactively('page') - 1) * this.perPage),
sort: this.getReactively('sort')}
limit: parseInt(this.perPage),
skip: parseInt((this.getReactively('page') - 1) * this.perPage),
sort: this.getReactively('sort')
}, this.getReactively('searchText')
]);

this.helpers({
Expand Down

0 comments on commit 8f59060

Please sign in to comment.