mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
coa fixes and bug report
This commit is contained in:
parent
6c3868616b
commit
742c1bc6e0
@ -26,7 +26,9 @@ class CoaActions {
|
||||
this.actions.updateCoa(res.coa);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
console.logGlobal(err);
|
||||
this.actions.updateCoa('Something went wrong, please try again later.');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -428,6 +428,13 @@ let CoaDetails = React.createClass({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
else if (typeof this.state.coa === 'string'){
|
||||
return (
|
||||
<div className="text-center">
|
||||
{this.state.coa}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className="text-center">
|
||||
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />
|
||||
|
@ -13,6 +13,10 @@ class CoaStore {
|
||||
onUpdateCoa(coa) {
|
||||
this.coa = coa;
|
||||
}
|
||||
onErrorCoa(err) {
|
||||
this.coa = {};
|
||||
//this.coa = err
|
||||
}
|
||||
}
|
||||
|
||||
export default alt.createStore(CoaStore, 'CoaStore');
|
||||
|
Loading…
Reference in New Issue
Block a user