mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 22:34:37 +08:00
work in progress ... groups
This commit is contained in:
@ -1,10 +1,22 @@
|
||||
Discourse.AdminGroupsController = Ember.ArrayController.extend({
|
||||
itemController: 'adminGroup',
|
||||
edit: function(action){
|
||||
this.get('content').select(action);
|
||||
|
||||
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.ObjectController.extend({
|
||||
Discourse.AdminGroupController = Ember.Controller.extend({
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user