wire wallet balance to wallet select component

This commit is contained in:
Marty Alcala 2016-10-12 17:40:53 -04:00
commit 444d25b9ee
4 changed files with 21 additions and 6 deletions

View file

@ -67,6 +67,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
if (err || !status) {
$log.error(err);
} else {
w.status = status;
if (!status.availableBalanceSat) $log.debug('No balance available in: ' + w.name);
if (status.availableBalanceSat > $scope.toAmount) {
filteredWallets.push(w);
@ -113,6 +114,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
$scope.showWalletSelector = function() {
console.log('showWalletSelector called');
console.log('$scope.wallets', $scope.wallets);
$scope.showWallets = true;
};