add update on network events to txproposals
This commit is contained in:
parent
751d86e785
commit
e46901c369
3 changed files with 16 additions and 2 deletions
|
|
@ -6,6 +6,9 @@ angular.module('copay.transactions').controller('TransactionsController',
|
|||
|
||||
$scope.title = 'Transactions';
|
||||
$scope.loading = false;
|
||||
|
||||
|
||||
|
||||
var _updateTxs = function() {
|
||||
var w =$rootScope.wallet;
|
||||
if (!w) return;
|
||||
|
|
@ -99,4 +102,13 @@ angular.module('copay.transactions').controller('TransactionsController',
|
|||
};
|
||||
|
||||
_updateTxs();
|
||||
|
||||
var w = $rootScope.wallet;
|
||||
if (w) {
|
||||
w.on('txProposalsUpdated', function() {
|
||||
console.log('[transactions.js.108: txProposalsUpdated:]'); //TODO
|
||||
_updateTxs();
|
||||
$rootScope.$digest();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue