1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

coa fixes and bug report

This commit is contained in:
diminator 2015-07-22 00:30:51 +02:00
parent 6c3868616b
commit 742c1bc6e0
3 changed files with 13 additions and 0 deletions

View File

@ -26,7 +26,9 @@ class CoaActions {
this.actions.updateCoa(res.coa); this.actions.updateCoa(res.coa);
}) })
.catch((err) => { .catch((err) => {
console.log(err)
console.logGlobal(err); console.logGlobal(err);
this.actions.updateCoa('Something went wrong, please try again later.');
}); });
} }
} }

View File

@ -428,6 +428,13 @@ let CoaDetails = React.createClass({
</div> </div>
); );
} }
else if (typeof this.state.coa === 'string'){
return (
<div className="text-center">
{this.state.coa}
</div>
);
}
return ( return (
<div className="text-center"> <div className="text-center">
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} /> <img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />

View File

@ -13,6 +13,10 @@ class CoaStore {
onUpdateCoa(coa) { onUpdateCoa(coa) {
this.coa = coa; this.coa = coa;
} }
onErrorCoa(err) {
this.coa = {};
//this.coa = err
}
} }
export default alt.createStore(CoaStore, 'CoaStore'); export default alt.createStore(CoaStore, 'CoaStore');