fix timming in modal
This commit is contained in:
parent
5bf0b93089
commit
7028f6f1c5
4 changed files with 22 additions and 23 deletions
|
|
@ -649,7 +649,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
self.updateAll();
|
||||
$timeout(function() {
|
||||
self.updateTxHistory();
|
||||
}, 5000);
|
||||
}, 3000);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -486,10 +486,9 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
}
|
||||
|
||||
self.signAndBroadcast(txp, function(err) {
|
||||
profileService.lockFC();
|
||||
if (err) {
|
||||
if (err)
|
||||
return self.setError(err);
|
||||
}
|
||||
|
||||
self.resetForm();
|
||||
});
|
||||
});
|
||||
|
|
@ -504,9 +503,8 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
profileService.lockFC();
|
||||
self.setOngoingProcess();
|
||||
|
||||
if (err) {
|
||||
if (err)
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
if (signedTx.status == 'accepted') {
|
||||
self.setOngoingProcess('Broadcasting transaction');
|
||||
|
|
@ -515,16 +513,14 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
|||
if (err) {
|
||||
$scope.error = 'Transaction not broadcasted. Please try again.';
|
||||
$scope.$digest();
|
||||
} else {
|
||||
txStatus.notify(btx);
|
||||
$scope.$emit('Local/TxProposalAction');
|
||||
}
|
||||
return cb();
|
||||
return;
|
||||
}
|
||||
$scope.$emit('Local/TxProposalAction');
|
||||
txStatus.notify(btx, cb);
|
||||
});
|
||||
} else {
|
||||
txStatus.notify(signedTx);
|
||||
$scope.$emit('Local/TxProposalAction');
|
||||
return cb();
|
||||
txStatus.notify(signedTx, cb);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue