2018-06-15 11:03:24 -04:00
|
|
|
import AdminUser from "admin/models/admin-user";
|
2015-11-20 20:27:06 -05:00
|
|
|
|
2014-11-26 13:05:49 -05:00
|
|
|
export default Discourse.Route.extend({
|
|
|
|
model: function(params) {
|
|
|
|
this.userFilter = params.filter;
|
2015-11-20 20:27:06 -05:00
|
|
|
return AdminUser.findAll(params.filter);
|
2014-11-26 13:05:49 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
setupController: function(controller, model) {
|
|
|
|
controller.setProperties({
|
|
|
|
model: model,
|
|
|
|
query: this.userFilter,
|
|
|
|
showEmails: false,
|
2018-06-15 11:03:24 -04:00
|
|
|
refreshing: false
|
2014-11-26 13:05:49 -05:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|