isolated scope - wallets filtered from controller

This commit is contained in:
Javier 2016-08-24 19:32:49 -03:00
commit 19419526e4
6 changed files with 55 additions and 67 deletions

View file

@ -5,11 +5,11 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
$scope.isCordova = platformInfo.isCordova;
$scope.init = function() {
$scope.defaultWallet = profileService.getWallets()[0];
$scope.hasWallet = $scope.defaultWallet ? true : false;
$scope.wallets = profileService.getWallets({
onlyComplete: true
});
$scope.isCordova = platformInfo.isCordova;
$scope.isNW = platformInfo.isNW;
$scope.setAddress(false);
}
$scope.$on('Wallet/Changed', function(event, wallet) {