android fix 2
This commit is contained in:
parent
952c13e424
commit
6b167d4bfd
1 changed files with 5 additions and 6 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue