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:
Neil Lalonde
2018-05-03 16:18:19 -04:00
parent 3a145b7551
commit a0447b47e0
3 changed files with 23 additions and 16 deletions

View File

@ -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;