wire wallet balance to wallet select component
This commit is contained in:
parent
b42bf01f6a
commit
444d25b9ee
4 changed files with 21 additions and 6 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue