available address
This commit is contained in:
parent
2fc3a8e8fa
commit
2fbd075206
4 changed files with 21 additions and 32 deletions
|
|
@ -27,11 +27,7 @@ angular.module('copay.header').controller('HeaderController',
|
|||
$rootScope.$watch('wallet', function(wallet) {
|
||||
if (wallet) {
|
||||
controllerUtils.setSocketHandlers();
|
||||
$rootScope.wallet.getBalance(function(balance) {
|
||||
$rootScope.$apply(function() {
|
||||
$rootScope.totalBalance = balance;
|
||||
});
|
||||
});
|
||||
controllerUtils.updateBalance();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,6 @@ var bitcore = require('bitcore');
|
|||
angular.module('copay.transactions').controller('TransactionsController',
|
||||
function($scope, $rootScope, $location) {
|
||||
$scope.title = 'Transactions';
|
||||
|
||||
$scope.oneAtATime = true;
|
||||
|
||||
var _updateTxs = function() {
|
||||
console.log('[transactions.js.10:_updateTxs:]'); //TODO
|
||||
var w =$rootScope.wallet;
|
||||
|
|
@ -32,6 +29,7 @@ console.log('[transactions.js.10:_updateTxs:]'); //TODO
|
|||
i.missingSignatures = tx.countInputMissingSignatures(0);
|
||||
txs.push(i);
|
||||
});
|
||||
console.log('[transactions.js.35:txs:]',txs); //TODO
|
||||
$scope.txs = txs;
|
||||
w.removeListener('txProposalsUpdated',_updateTxs)
|
||||
w.once('txProposalsUpdated',_updateTxs);
|
||||
|
|
@ -69,4 +67,5 @@ console.log('[transactions.js.68:txid:] SENTTX CALLBACK',txid); //TODO
|
|||
}
|
||||
};
|
||||
|
||||
_updateTxs();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue