improve confirm view UI
This commit is contained in:
parent
f1626eb498
commit
7f684c8eb6
4 changed files with 15 additions and 9 deletions
|
|
@ -63,9 +63,8 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
|||
|
||||
if (!$scope.wallets || !$scope.wallets.length) {
|
||||
$scope.noMatchingWallet = true;
|
||||
if ($scope.paypro) {
|
||||
displayValues();
|
||||
}
|
||||
displayValues();
|
||||
$log.warn('No ' + $scope.network + ' wallets to make the payment');
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
});
|
||||
|
|
@ -107,6 +106,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
|||
} else initConfirm();
|
||||
} else {
|
||||
if (!enoughFunds) $scope.insufficientFunds = true;
|
||||
displayValues();
|
||||
$log.warn('No wallet available to make the payment');
|
||||
}
|
||||
$timeout(function() {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ angular.module('copayApp.directives')
|
|||
transclude: true,
|
||||
scope: {
|
||||
sendStatus: '=clickSendStatus',
|
||||
wallet: '=hasWalletChosen'
|
||||
hasWalletChosen: '=hasWalletChosen',
|
||||
insufficientFunds: '=insufficientFunds',
|
||||
noMatchingWallet: '=noMatchingWallet'
|
||||
},
|
||||
link: function(scope, element, attrs) {
|
||||
scope.$watch('sendStatus', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue