better walletIds storage

This commit is contained in:
Matias Alejo Garcia 2014-12-18 00:38:00 -03:00
commit 41f70c48f9
8 changed files with 220 additions and 71 deletions

View file

@ -85,7 +85,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
$scope.setWallets = function() {
if (!$rootScope.iden) return;
var ret = _.filter($rootScope.iden.listWallets(), function(w) {
var ret = _.filter($rootScope.iden.getWallets(), function(w) {
return w;
});
$scope.wallets = _.sortBy(ret, 'name');