mirror of
https://github.com/flarum/framework.git
synced 2025-06-04 14:54:32 +08:00
Better handling of API server errors
This commit is contained in:
@ -47,7 +47,10 @@ export default class DiscussionList extends Component {
|
||||
this.loading(true);
|
||||
this.discussions([]);
|
||||
m.endComputation();
|
||||
this.loadResults().then(this.parseResults.bind(this));
|
||||
this.loadResults().then(this.parseResults.bind(this), response => {
|
||||
this.loading(false);
|
||||
m.redraw();
|
||||
});
|
||||
}
|
||||
|
||||
onunload() {
|
||||
|
Reference in New Issue
Block a user