mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Allow HTML errors whenever a popup is generated (#20989)
Follow-up-to: 6bbf8324008871068ddf46a80567a3887bb984be
This commit is contained in:

committed by
GitHub

parent
5c2c1bf9a7
commit
355b44472b
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user