1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Better handling of API server errors

This commit is contained in:
Toby Zerner
2015-05-26 11:43:20 +09:30
parent feb4676aa0
commit 5fc2f3aeee
5 changed files with 31 additions and 4 deletions

View File

@@ -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() {