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;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -45,12 +45,20 @@
|
|||
padding-top: 16px;
|
||||
padding-bottom: 16px;
|
||||
|
||||
.wallet-name {
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
|
||||
.wallet-balance {
|
||||
color: #3A3A3A;
|
||||
font-family: "Roboto-Light";
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
//background: rgba(221, 221, 221, 0.3);
|
||||
background: $border-color;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ action-sheet {
|
|||
padding-left: 2rem;
|
||||
padding-right: .75rem;
|
||||
color: #2f2f2f;
|
||||
padding-bottom: 2rem;
|
||||
padding-bottom: 3.5rem;
|
||||
|
||||
&.slide-up {
|
||||
transform: translateY(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue