cms/app-client/app/routes/tabs/thematiques.js
author Chloe Laisne <chloe.laisne@gmail.com>
Sat, 09 Jul 2016 00:59:32 +0200
changeset 236 ac6928e86d14
parent 176 d1baf7ccecc8
child 237 69a9f3687902
permissions -rw-r--r--
Adapt theme query limit and offset and sorting order in fixtures

import Ember from 'ember';

export default Ember.Route.extend({

	page: 0,
	limit: 40,
	sort: 'alphabetical',

    model: function() {
        return this.store.query('theme', {
        	'limit': this.get('limit'),
        	'page': this.get('page'),
        	'sort': this.get('sort')
        });
    }

});