Only update TXs & balance once after changes to proposals
This commit is contained in:
parent
9d5b26f526
commit
7053c322c9
1 changed files with 9 additions and 9 deletions
|
|
@ -100,17 +100,17 @@ angular.module('copayApp.services')
|
||||||
$rootScope.$digest();
|
$rootScope.$digest();
|
||||||
});
|
});
|
||||||
|
|
||||||
w.on('txProposalsUpdated', function(dontDigest) {
|
var updateTxsAndBalance = _.debounce(function() {
|
||||||
root.updateTxs();
|
root.updateTxs();
|
||||||
// give sometime to the tx to propagate.
|
root.updateBalance(function() {
|
||||||
$timeout(function() {
|
$rootScope.$digest();
|
||||||
root.updateBalance(function() {
|
})
|
||||||
if (!dontDigest) {
|
}, 3000);
|
||||||
$rootScope.$digest();
|
|
||||||
}
|
w.on('txProposalsUpdated', function(dontDigest) {
|
||||||
});
|
updateTxsAndBalance();
|
||||||
}, 3000);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
w.on('txProposalEvent', function(e) {
|
w.on('txProposalEvent', function(e) {
|
||||||
|
|
||||||
var user = w.publicKeyRing.nicknameForCopayer(e.cId);
|
var user = w.publicKeyRing.nicknameForCopayer(e.cId);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue