Added page and controller to select wallet

This commit is contained in:
Matias Pando 2014-11-03 18:02:21 -03:00
commit bacea69cb3
6 changed files with 97 additions and 2 deletions

View file

@ -93,7 +93,7 @@ angular.module('copayApp.services')
if ($rootScope.initialConnection) {
$rootScope.initialConnection = false;
if ($rootScope.pendingPayment) {
$location.path('send');
$location.path('paymentIntent');
} else {
root.redirIfLogged();
}
@ -196,6 +196,11 @@ angular.module('copayApp.services')
});
};
root.setPaymentWallet = function(w) {
root.setFocusedWallet(w);
$location.path('/send');
};
root.setFocusedWallet = function(w) {
if (!_.isObject(w))
w = $rootScope.iden.getWalletById(w);