Not show error when fetching paypro after qr scan

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-15 15:06:12 -03:00
parent 6a4b05010d
commit 07909b5075
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
2 changed files with 5 additions and 1 deletions

View File

@ -36,7 +36,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$rootScope.$emit('Local/SetTab', 'send');
var form = $scope.sendForm;
if (form.address.$invalid && !self.blockUx) {
if (form.address.$invalid && !ongoingProcess.get('fetchingPayPro')) {
self.resetForm();
self.error = gettext('Could not recognize a valid Bitcoin QR Code');
}

View File

@ -34,6 +34,10 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
ongoingProcess = {};
};
root.get = function(processName) {
return ongoingProcess[processName];
};
root.set = function(processName, isOn) {
$log.debug('ongoingProcess', processName, isOn);
root[processName] = isOn;