Removes isProcessing flag
This commit is contained in:
parent
a013151791
commit
1f3f4834c6
2 changed files with 1 additions and 6 deletions
|
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue