adds pending txs service
This commit is contained in:
parent
e52d45c5d8
commit
b73f711fff
5 changed files with 19 additions and 8 deletions
|
|
@ -5,7 +5,11 @@ angular.module('copayApp.services')
|
|||
.factory('pendingTxsService', function($rootScope, $sce, $location, $filter, notification, $timeout, rateService) {
|
||||
var root = {};
|
||||
root.update = function(w) {
|
||||
console.log('[pendingTxsService.js.8] TODO updade pending Txs'); //TODO
|
||||
var w = $rootScope.wallet;
|
||||
if (!w) return;
|
||||
|
||||
var res = w.getPendingTxProposals();
|
||||
$rootScope.pendingTxCount = res.pendingForUs;
|
||||
};
|
||||
return root;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue