fix layout locked balance and list of wallets

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-31 15:30:43 -03:00
commit b540021487
3 changed files with 26 additions and 29 deletions

View file

@ -50,6 +50,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
if ($rootScope.wallet) {
$rootScope.$watch('wallet.id', function() {
$scope.walletSelection = false;
$scope.getWallets();
});
}
@ -61,6 +62,10 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
$scope.walletSelection = !$scope.walletSelection;
if (!$scope.walletSelection) return;
$scope.getWallets();
};
$scope.getWallets = function() {
$scope.wallets = [];
var wids = _.pluck($rootScope.iden.listWallets(), 'id');
_.each(wids, function(wid) {