mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 19:51:24 +08:00
23 lines
579 B
JavaScript
23 lines
579 B
JavaScript
Discourse.AdminGroupsController = Ember.ArrayController.extend({
|
|
itemController: 'adminGroup',
|
|
|
|
edit: function(group){
|
|
this.get('model').select(group);
|
|
group.loadUsers();
|
|
},
|
|
|
|
refreshAutoGroups: function(){
|
|
var controller = this;
|
|
|
|
this.set('refreshingAutoGroups', true);
|
|
Discourse.ajax('/admin/groups/refresh_automatic_groups', {type: 'POST'}).then(function(){
|
|
controller.set('model', Discourse.Group.findAll());
|
|
controller.set('refreshingAutoGroups',false);
|
|
});
|
|
}
|
|
});
|
|
|
|
Discourse.AdminGroupController = Ember.Controller.extend({
|
|
|
|
});
|