Prevent double tap (in mobile)

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-01 14:16:47 -03:00
commit b210a970d3
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 82 additions and 76 deletions

View file

@ -27,6 +27,8 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
$scope.error = null; $scope.error = null;
$scope.loading = 'Signing Transaction'; $scope.loading = 'Signing Transaction';
$timeout(function() {
fingerprintService.check(fc, function(err) { fingerprintService.check(fc, function(err) {
if (err) { if (err) {
$scope.error = bwcError.msg(err); $scope.error = bwcError.msg(err);
@ -67,6 +69,7 @@ angular.module('copayApp.controllers').controller('txpDetailsController', functi
}); });
}); });
}); });
}, 10);
}; };
$scope.reject = function(txp) { $scope.reject = function(txp) {

View file

@ -823,6 +823,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
this.error = null; this.error = null;
ongoingProcess.set('calculatingFee', true); ongoingProcess.set('calculatingFee', true);
$timeout(function() {
feeService.getCurrentFeeValue(function(err, feePerKb) { feeService.getCurrentFeeValue(function(err, feePerKb) {
ongoingProcess.set('calculatingFee', false); ongoingProcess.set('calculatingFee', false);
if (err || !lodash.isNumber(feePerKb)) { if (err || !lodash.isNumber(feePerKb)) {
@ -887,6 +889,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
} }
}); });
}); });
}, 10);
}; };
/* Start setup */ /* Start setup */