UX: stop displaying "user deleted, OK" dialog
This commit is contained in:
parent
dd972856d6
commit
36405287b4
|
@ -307,9 +307,6 @@ Discourse.AdminUser = Discourse.User.extend({
|
|||
data: formData
|
||||
}).then(function(data) {
|
||||
if (data.deleted) {
|
||||
bootbox.alert(I18n.t("admin.user.deleted"), function() {
|
||||
document.location = "/admin/users/list/active";
|
||||
});
|
||||
} else {
|
||||
bootbox.alert(I18n.t("admin.user.delete_failed"));
|
||||
if (data.user) {
|
||||
|
@ -361,9 +358,6 @@ Discourse.AdminUser = Discourse.User.extend({
|
|||
data: {delete_posts: true, block_email: true, block_urls: true, block_ip: true, context: window.location.pathname}
|
||||
}).then(function(data) {
|
||||
if (data.deleted) {
|
||||
bootbox.alert(I18n.t("admin.user.deleted"), function() {
|
||||
if (successCallback) successCallback();
|
||||
});
|
||||
} else {
|
||||
bootbox.alert(I18n.t("admin.user.delete_failed"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue