FIX: Show better default error when failing to delete all user posts (#20985)
This commit is contained in:
parent
3d7833d67e
commit
79c87b5003
|
@ -660,7 +660,7 @@ export default class AdminUserIndexController extends Controller.extend(
|
|||
progressModal.send("closeModal");
|
||||
let error;
|
||||
AdminUser.find(user.get("id")).then((u) => user.setProperties(u));
|
||||
error = extractError(e) || I18n.t("admin.user.delete_posts_failed");
|
||||
error = extractError(e, I18n.t("admin.user.delete_posts_failed"));
|
||||
this.dialog.alert(error);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue