1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 13:41:57 +02:00

check if piece exists in props in wallet details

This commit is contained in:
diminator 2015-09-22 09:20:10 +02:00
parent 904793269b
commit b4c7b864fd

View File

@ -17,7 +17,7 @@ import ApiUrls from '../../../../../constants/api_urls';
import { getLangText } from '../../../../../utils/lang_utils';
import { mergeOptions } from '../../../../../utils/general_utils';
import AppConstants from '../../../../../constants/application_constants';
let WalletPieceContainer = React.createClass({
@ -30,6 +30,7 @@ let WalletPieceContainer = React.createClass({
render() {
if(this.props.piece && this.props.piece.title) {
return (
<Piece
piece={this.props.piece}
@ -78,6 +79,14 @@ let WalletPieceContainer = React.createClass({
{this.props.children}
</Piece>
);
}
else {
return (
<div className="fullpage-spinner">
<img src={AppConstants.baseUrl + 'static/img/ascribe_animated_medium.gif'} />
</div>
);
}
}
});