Fix select wallet
This commit is contained in:
parent
c8058fefa4
commit
42a8176d7c
1 changed files with 7 additions and 5 deletions
|
|
@ -35,19 +35,21 @@ angular.module('copayApp.controllers').controller('buyAmazonController',
|
||||||
|
|
||||||
$scope.type = 'SELL';
|
$scope.type = 'SELL';
|
||||||
$scope.wallets = wallets;
|
$scope.wallets = wallets;
|
||||||
|
$scope.self = self;
|
||||||
|
|
||||||
$ionicModal.fromTemplateUrl('views/modals/wallets.html', {
|
$ionicModal.fromTemplateUrl('views/modals/wallets.html', {
|
||||||
scope: $scope
|
scope: $scope,
|
||||||
|
animation: 'slide-in-up'
|
||||||
}).then(function(modal) {
|
}).then(function(modal) {
|
||||||
$scope.walletsModal = modal;
|
$scope.walletsModal = modal;
|
||||||
$scope.walletsModal.show();
|
$scope.walletsModal.show();
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on('walletSelected', function(ev, obj) {
|
$scope.$on('walletSelected', function(ev, walletId) {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
self.selectedWalletId = obj.walletId;
|
client = profileService.getClient(walletId);
|
||||||
self.selectedWalletName = obj.walletName;
|
self.selectedWalletId = walletId;
|
||||||
client = obj.client;
|
self.selectedWalletName = client.credentials.walletName;
|
||||||
$scope.$apply();
|
$scope.$apply();
|
||||||
}, 100);
|
}, 100);
|
||||||
$scope.walletsModal.hide();
|
$scope.walletsModal.hide();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue