DEV: Allow HTML errors whenever a popup is generated (#20989)

Follow-up-to: 6bbf8324008871068ddf46a80567a3887bb984be
This commit is contained in:
Daniel Waterworth
2023-04-06 10:00:54 -05:00
committed by GitHub
parent 5c2c1bf9a7
commit 355b44472b
2 changed files with 25 additions and 12 deletions

View File

@ -246,14 +246,7 @@ export default class AdminUserIndexController extends Controller.extend(
queryParams: { nonce },
});
} else {
const htmlMessage = error.jqXHR?.responseJSON.html_message;
if (htmlMessage) {
this.dialog.alert({
message: htmlSafe(error.jqXHR?.responseJSON.error),
});
} else {
popupAjaxError(error);
}
popupAjaxError(error);
}
});
}