mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Pop up dialog correctly when fail to delete a user (#20645)
This commit is contained in:
@@ -223,7 +223,11 @@ export default Controller.extend(CanCheckEmails, {
|
||||
});
|
||||
},
|
||||
() => {
|
||||
this.dialog.alert(I18n.t("user.delete_yourself_not_allowed"));
|
||||
next(() =>
|
||||
this.dialog.alert(
|
||||
I18n.t("user.delete_yourself_not_allowed")
|
||||
)
|
||||
);
|
||||
this.set("deleting", false);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user