Wallet/js/services/pendingTxsService.js
Matias Alejo Garcia 01b678457d fix pending
2014-11-30 22:41:22 -03:00

15 lines
407 B
JavaScript

'use strict';
angular.module('copayApp.services')
.factory('pendingTxsService', function($rootScope, $sce, $location, $filter, notification, $timeout, rateService) {
var root = {};
root.update = function(w) {
var w = $rootScope.wallet;
if (!w) return;
var ret = w.getPendingTxProposalsCount();
$rootScope.pendingTxCount = ret.pendingForUs;
};
return root;
});