Wallet/js/services/pendingTxsService.js
2014-11-30 22:41:22 -03:00

15 lines
402 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 res = w.getPendingTxProposals();
$rootScope.pendingTxCount = res.pendingForUs;
};
return root;
});