discourse/app/assets/javascripts/admin/routes/admin-groups-bulk.js.es6

14 lines
323 B
Plaintext
Raw Normal View History

2016-04-01 05:33:25 +08:00
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 });
}
});