FIX: Pop up dialog correctly when fail to delete a user (#20645)

This commit is contained in:
PangBo
2023-09-01 10:13:18 +08:00
committed by GitHub
parent d7d3bc758e
commit d79ff4f810

View File

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