mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:24:10 +08:00
Fix auto-group refresh response so that ajax callback runs
This commit is contained in:
@ -10,9 +10,10 @@ Discourse.AdminGroupsController = Ember.Controller.extend({
|
||||
var controller = this;
|
||||
|
||||
this.set('refreshingAutoGroups', true);
|
||||
Discourse.ajax('/admin/groups/refresh_automatic_groups', {type: 'POST'}).then(function(){
|
||||
Discourse.ajax('/admin/groups/refresh_automatic_groups', {type: 'POST'})
|
||||
.then(function() {
|
||||
controller.set('model', Discourse.Group.findAll());
|
||||
controller.set('refreshingAutoGroups',false);
|
||||
controller.set('refreshingAutoGroups', false);
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user