mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 11:45:19 +08:00
14 lines
323 B
Plaintext
14 lines
323 B
Plaintext
|
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 });
|
||
|
}
|
||
|
});
|