adds pending txs service
This commit is contained in:
parent
e52d45c5d8
commit
b73f711fff
5 changed files with 19 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue