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

@ -55,8 +55,6 @@ angular.module('copayApp.controllers').controller('SendController',
}
});
$scope.txps = res.txs;
// TODO
// $rootScope.pendingTxCount = res.pendingForUs;
};
/**
@ -100,7 +98,8 @@ angular.module('copayApp.controllers').controller('SendController',
});
$scope.loadTxs = function() {
$scope.init = function() {
$rootScope.pendingTxCount = 0;
$scope.updateTxs();
setTimeout(function() {
$scope.loading = false;

View file

@ -46,8 +46,9 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
$scope.init = function() {
// Change focused wallet
// This should be called only once.
// focused wallet change
if ($rootScope.wallet) {
$rootScope.$watch('wallet', function() {
$scope.walletSelection = false;
@ -55,7 +56,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
});
}
// Change wallet list
// wallet list chane
if ($rootScope.iden) {
var iden = $rootScope.iden;
iden.on('newWallet', function() {