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