Added page and controller to select wallet
This commit is contained in:
parent
f1005625dd
commit
bacea69cb3
6 changed files with 97 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue