fix freeze app after change fee level using send max

This commit is contained in:
JDonadio 2017-09-07 16:49:37 -03:00
commit ae92d91a37
No known key found for this signature in database
GPG key ID: EC1F4E04B2BFA730

View file

@ -287,7 +287,9 @@ angular.module('copayApp.controllers').controller('confirmController', function(
tx.toAmount = tx.sendMaxInfo.amount; tx.toAmount = tx.sendMaxInfo.amount;
updateAmount(); updateAmount();
ongoingProcess.set('calculatingFee', false); ongoingProcess.set('calculatingFee', false);
showSendMaxWarning(wallet, sendMaxInfo); $timeout(function() {
showSendMaxWarning(wallet, sendMaxInfo);
}, 200);
} }
// txp already generated for this wallet? // txp already generated for this wallet?
@ -347,11 +349,11 @@ angular.module('copayApp.controllers').controller('confirmController', function(
$scope.buttonText = gettextCatalog.getString('Click to accept'); $scope.buttonText = gettextCatalog.getString('Click to accept');
} }
} else } else
if (isCordova && !isWindowsPhoneApp) { if (isCordova && !isWindowsPhoneApp) {
$scope.buttonText = gettextCatalog.getString('Slide to send'); $scope.buttonText = gettextCatalog.getString('Slide to send');
} else { } else {
$scope.buttonText = gettextCatalog.getString('Click to send'); $scope.buttonText = gettextCatalog.getString('Click to send');
} }
}; };