Merge pull request #82 from Bitcoin-com/sendscreen

Sendscreen
This commit is contained in:
Jean-Baptiste Dominguez 2018-04-26 14:51:46 +09:00 committed by GitHub
commit ba3606d66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 1038 additions and 729 deletions

View file

@ -240,6 +240,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
};
$scope.changeUnit = function() {
$scope.amountModel.amount = '';
if ($scope.alternativeAmount == 0) {
$scope.alternativeAmount = null;
@ -294,6 +295,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
$scope.amountModel.amount = ($scope.amountModel.amount + digit).replace('..', '.');
checkFontSize();
$scope.processAmount();
navigator.vibrate(50);
};
$scope.pushOperator = function(operator) {
@ -323,6 +325,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
$scope.amountModel.amount = ($scope.amountModel.amount).toString().slice(0, -1);
$scope.processAmount();
checkFontSize();
navigator.vibrate(50);
};
$scope.resetAmount = function() {
@ -464,6 +467,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
$state.transitionTo('tabs.send.confirm', confirmData);
}
$scope.useSendMax = null;
navigator.vibrate(50);
}
if ($scope.showWarningMessage) {