fix received

This commit is contained in:
Matias Alejo Garcia 2014-09-09 15:40:12 -03:00
commit 255affe382
3 changed files with 4 additions and 3 deletions

View file

@ -15,7 +15,7 @@
<div class="inner-wrap">
<span class="status" ng-if="$root.reconnecting">
<i class="fi-loop icon-rotate m15r"></i>
Attempting to reconnect...
<span translate> Network Error. Attempting to reconnect...</span>
</span>
<nav class="tab-bar" ng-class="{'hide-tab-bar' : !$root.wallet ||
!$root.wallet.isReady() || $root.wallet.isLocked}">

View file

@ -653,6 +653,7 @@ Wallet.prototype._setBlockchainListeners = function() {
this.blockchain.on('disconnect', self.emit.bind(self,'networkError'));
this.blockchain.on('tx', function(tx) {
console.log('[Wallet.js.655:tx:]',tx); //TODO
self.emit('tx', tx.address);
});

View file

@ -70,8 +70,8 @@ angular.module('copayApp.services')
}
});
w.on('tx', function() {
notification.funds('Funds received!', tx.address);
w.on('tx', function(address) {
notification.funds('Funds received!', address);
root.updateBalance(function() {
$rootScope.$digest();
});