changeset 236 | ac6928e86d14 |
parent 176 | d1baf7ccecc8 |
child 237 | 69a9f3687902 |
--- a/cms/app-client/app/routes/tabs/thematiques.js Fri Jul 08 18:41:32 2016 +0200 +++ b/cms/app-client/app/routes/tabs/thematiques.js Sat Jul 09 00:59:32 2016 +0200 @@ -2,8 +2,16 @@ export default Ember.Route.extend({ + page: 0, + limit: 40, + sort: 'alphabetical', + model: function() { - return this.store.findAll('theme'); + return this.store.query('theme', { + 'limit': this.get('limit'), + 'page': this.get('page'), + 'sort': this.get('sort') + }); } });