use BusyMessage on wallet page

This commit is contained in:
Sonata Green 2016-08-22 11:16:43 -05:00
parent a4cd2f9b09
commit 73e29b423b

View file

@ -57,7 +57,7 @@ var SendToAddressSection = React.createClass({
return { return {
address: "", address: "",
amount: 0.0, amount: 0.0,
balance: "Checking balance...", balance: <BusyMessage message="Checking balance" />,
results: "", results: "",
} }
}, },
@ -116,8 +116,8 @@ var WalletPage = React.createClass({
*/ */
getInitialState: function() { getInitialState: function() {
return { return {
balance: "Checking balance...", balance: <BusyMessage message="Checking balance" />,
txlog: "Loading transactions...", txlog: <BusyMessage message="Loading transactions" />,
} }
}, },
componentWillMount: function() { componentWillMount: function() {
@ -127,7 +127,7 @@ var WalletPage = React.createClass({
}) })
}); });
lbry.call('get_transaction_history', {}, (results) => { lbry.call('get_transaction_history', {}, (results) => {
var out = 'Transaction history loaded.' var out = '(You should never see this message. -- wallet.js WalletPage componentWillMount)'
if (results.length == 0) { if (results.length == 0) {
out = 'No transactions yet.'; out = 'No transactions yet.';
} else { } else {
@ -189,4 +189,4 @@ var WalletPage = React.createClass({
</main> </main>
); );
} }
}); });