fix layout locked balance and list of wallets
This commit is contained in:
parent
cfc16b8d68
commit
b540021487
3 changed files with 26 additions and 29 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue