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');
|
||||
|
||||
var form = $scope.sendForm;
|
||||
if (form.address.$invalid && !ongoingProcess.isProcessing) {
|
||||
if (form.address.$invalid && !ongoingProcess.get('fetchingPayPro')) {
|
||||
self.resetForm();
|
||||
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...'),
|
||||
};
|
||||
|
||||
root.isProcessing = false;
|
||||
|
||||
root.clear = function() {
|
||||
ongoingProcess = {};
|
||||
root.isProcessing = false;
|
||||
if (isCordova) {
|
||||
window.plugins.spinnerDialog.hide();
|
||||
} else {
|
||||
|
|
@ -63,7 +60,6 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
var showName = $filter('translate')(processNames[name] || name);
|
||||
|
||||
if (root.onGoingProcessName) {
|
||||
root.isProcessing = true;
|
||||
if (isCordova) {
|
||||
window.plugins.spinnerDialog.show(null, showName, true);
|
||||
} else {
|
||||
|
|
@ -74,7 +70,6 @@ angular.module('copayApp.services').factory('ongoingProcess', function($log, $ti
|
|||
});
|
||||
}
|
||||
} else {
|
||||
root.isProcessing = false;
|
||||
if (isCordova) {
|
||||
window.plugins.spinnerDialog.hide();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue