android fix 2

This commit is contained in:
Matias Alejo Garcia 2015-04-28 17:28:49 -03:00
commit 6b167d4bfd

View file

@ -484,10 +484,10 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
} }
} else { } else {
self.onGoingProcess = name; self.onGoingProcess = name;
$timeout(function() {
$rootScope.$apply();
});
}; };
$timeout(function() {
$rootScope.$apply();
});
}; };
this.submitForm = function() { this.submitForm = function() {
@ -556,13 +556,12 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
if (signedTx.status == 'accepted') { if (signedTx.status == 'accepted') {
self.setOngoingProcess('Broadcasting transaction'); self.setOngoingProcess('Broadcasting transaction');
fc.broadcastTxProposal(signedTx, function(err, btx) { fc.broadcastTxProposal(signedTx, function(err, btx) {
self.setOngoingProcess();
if (err) { if (err) {
self.setOngoingProcess();
$scope.error = 'Transaction not broadcasted. Please try again.'; $scope.error = 'Transaction not broadcasted. Please try again.';
$scope.$digest(); $scope.$digest();
return; return cb(err);
} }
self.setOngoingProcess();
$scope.$emit('Local/TxProposalAction'); $scope.$emit('Local/TxProposalAction');
txStatus.notify(btx, function() { txStatus.notify(btx, function() {
return cb(); return cb();