mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
14 lines
323 B
Text
14 lines
323 B
Text
|
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 });
|
||
|
}
|
||
|
});
|