better walletIds storage
This commit is contained in:
parent
a7cdb727ef
commit
41f70c48f9
8 changed files with 220 additions and 71 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue