Removes isProcessing flag

This commit is contained in:
Gustavo Maximiliano Cortez 2016-06-16 21:45:52 -03:00
commit 1f3f4834c6
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 1 additions and 6 deletions

View file

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

View file

@ -30,11 +30,8 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
'deletingWallet': gettext('Deleting Wallet...'), 'deletingWallet': gettext('Deleting Wallet...'),
}; };
root.isProcessing = false;
root.clear = function() { root.clear = function() {
ongoingProcess = {}; ongoingProcess = {};
root.isProcessing = false;
if (isCordova) { if (isCordova) {
window.plugins.spinnerDialog.hide(); window.plugins.spinnerDialog.hide();
} else { } else {
@ -63,7 +60,6 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
var showName = $filter('translate')(processNames[name] || name); var showName = $filter('translate')(processNames[name] || name);
if (root.onGoingProcessName) { if (root.onGoingProcessName) {
root.isProcessing = true;
if (isCordova) { if (isCordova) {
window.plugins.spinnerDialog.show(null, showName, true); window.plugins.spinnerDialog.show(null, showName, true);
} else { } else {
@ -74,7 +70,6 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
}); });
} }
} else { } else {
root.isProcessing = false;
if (isCordova) { if (isCordova) {
window.plugins.spinnerDialog.hide(); window.plugins.spinnerDialog.hide();
} else { } else {