15 lines
402 B
JavaScript
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;
|
|
});
|