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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

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