make wallet selector a standalone directive

This commit is contained in:
Marty Alcala 2016-10-12 20:13:28 -04:00
commit ec3fca4cda
8 changed files with 132 additions and 102 deletions

View file

@ -113,16 +113,11 @@ angular.module('copayApp.controllers').controller('confirmController', function(
});
$scope.showWalletSelector = function() {
console.log('showWalletSelector called');
console.log('$scope.wallets', $scope.wallets);
$scope.showWallets = true;
};
$scope.selectWallet = function(w) {
$timeout(function() {
$scope.showWallets = false;
}, 100);
setWallet(w);
$scope.onWalletSelect = function(wallet) {
setWallet(wallet);
};