discourse/app/assets/javascripts/admin/routes/admin-groups-bulk.js.es6
2015-10-26 15:57:30 -04:00

13 lines
323 B
JavaScript

import Group from 'discourse/models/group';
export default Ember.Route.extend({
model() {
return Group.findAll().then(groups => {
return groups.filter(g => !g.get('automatic'));
});
},
setupController(controller, groups) {
controller.setProperties({ groups, groupId: null, users: null });
}
});