mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: dual modal when deleting spammer in the flag modal
This commit is contained in:
@@ -15,18 +15,6 @@ Discourse.AdminFlagsRouteType = Discourse.Route.extend({
|
||||
adminFlagsController.set('query', this.get('filter'));
|
||||
},
|
||||
|
||||
actions: {
|
||||
/**
|
||||
Deletes a user and all posts and topics created by that user.
|
||||
|
||||
@method deleteSpammer
|
||||
**/
|
||||
deleteSpammer: function (user) {
|
||||
this.send('closeModal');
|
||||
user.deleteAsSpammer(function() { window.location.reload(); });
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Discourse.AdminFlagsActiveRoute = Discourse.AdminFlagsRouteType.extend({
|
||||
|
||||
Reference in New Issue
Block a user