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

@ -28,7 +28,7 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
$scope.setWallets = function() {
if (!$rootScope.iden) return;
var wallets = $rootScope.iden.listWallets();
var wallets = $rootScope.iden.getWallets();
var max = $rootScope.quotaPerItem;
_.each(wallets, function(w) {

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');

View file

@ -14,7 +14,7 @@ angular.module('copayApp.controllers').controller('walletForPaymentController',
});
$scope.setWallets = function() {
$scope.wallets = $rootScope.iden.listWallets();
$scope.wallets = $rootScope.iden.getWallets();
};
$scope.ok = function(w) {