mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
22 lines
575 B
JavaScript
22 lines
575 B
JavaScript
import PaginationRouteMixin from 'ghost/mixins/pagination-route';
|
|
|
|
var paginationSettings = {
|
|
page: 1,
|
|
limit: 20,
|
|
status: 'all'
|
|
};
|
|
|
|
var UsersIndexRoute = Ember.Route.extend(SimpleAuth.AuthenticatedRouteMixin, PaginationRouteMixin, {
|
|
setupController: function (controller, model) {
|
|
this._super(controller, model);
|
|
this.setupPagination(paginationSettings);
|
|
},
|
|
|
|
model: function () {
|
|
return this.store.filter('user', paginationSettings, function () {
|
|
return true;
|
|
});
|
|
}
|
|
});
|
|
|
|
export default UsersIndexRoute;
|