adds pending txs service

This commit is contained in:
Matias Alejo Garcia 2014-11-30 11:08:51 -03:00
commit b73f711fff
5 changed files with 19 additions and 8 deletions

View file

@ -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;
});