mirror of
https://github.com/flarum/framework.git
synced 2025-05-25 08:09:57 +08:00
Improve client XHR error handling
The default XHR error handler produce an alert which is appropriate to the response status code. It can be overridden per-request (by specifying the `errorHandler` option) so that the alert can be suppressed or displayed in a different position (e.g. inside a modal). ref #118
This commit is contained in:
@ -5,10 +5,6 @@ export default class RequestErrorModal extends Modal {
|
||||
return 'RequestErrorModal Modal--large';
|
||||
}
|
||||
|
||||
title() {
|
||||
return this.props.error.message;
|
||||
}
|
||||
|
||||
content() {
|
||||
let responseText;
|
||||
|
||||
|
Reference in New Issue
Block a user