2014-11-30 00:31:17 -03:00
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
angular.module('copayApp.services')
|
2014-11-30 17:34:14 -03:00
|
|
|
.factory('pendingTxsService', function($rootScope) {
|
2014-11-30 00:31:17 -03:00
|
|
|
var root = {};
|
|
|
|
|
root.update = function(w) {
|
2014-11-30 11:08:51 -03:00
|
|
|
var w = $rootScope.wallet;
|
|
|
|
|
if (!w) return;
|
|
|
|
|
|
2014-11-30 11:18:25 -03:00
|
|
|
var ret = w.getPendingTxProposalsCount();
|
|
|
|
|
$rootScope.pendingTxCount = ret.pendingForUs;
|
2014-11-30 00:31:17 -03:00
|
|
|
};
|
|
|
|
|
return root;
|
|
|
|
|
});
|