mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 05:11:44 +08:00
UX: when deleting a user, show a modal indicating that the delete is happening. User hijack so requests don't time out.
This commit is contained in:
@ -412,6 +412,7 @@ const AdminUser = Discourse.User.extend({
|
||||
location = document.location.pathname;
|
||||
|
||||
const performDestroy = function(block) {
|
||||
bootbox.dialog(I18n.t('admin.user.deleting_user'));
|
||||
let formData = { context: location };
|
||||
if (block) {
|
||||
formData["block_email"] = true;
|
||||
|
Reference in New Issue
Block a user