fix confirmation popup

This commit is contained in:
Gabriel Bazán 2016-10-12 10:53:27 -03:00
commit db4a6069e9

View file

@ -308,17 +308,20 @@ angular.module('copayApp.controllers').controller('confirmController', function(
var cancelText = gettextCatalog.getString('Cancel'); var cancelText = gettextCatalog.getString('Cancel');
if (!spendingPassEnabled && !touchIdEnabled) { if (!spendingPassEnabled && !touchIdEnabled) {
if (isCordova && bigAmount) { if (isCordova) {
popupService.showConfirm(null, message, okText, cancelText, function(ok) { if (bigAmount) {
if (!ok) { popupService.showConfirm(null, message, okText, cancelText, function(ok) {
$scope.sendStatus = ''; if (!ok) {
$timeout(function() { $scope.sendStatus = '';
$scope.$apply(); $timeout(function() {
}); $scope.$apply();
return; });
} return;
publishAndSign(wallet, txp, onSendStatusChange); }
}); publishAndSign(wallet, txp, onSendStatusChange);
});
}
else publishAndSign(wallet, txp, onSendStatusChange);
} }
else { else {
popupService.showConfirm(null, message, okText, cancelText, function(ok) { popupService.showConfirm(null, message, okText, cancelText, function(ok) {