Fix: modal choose wallet. Sell in Coinbase and Glidera. Spinner
This commit is contained in:
parent
6d9bc56144
commit
f08f30240a
13 changed files with 123 additions and 81 deletions
|
|
@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController',
|
|||
var self = this;
|
||||
|
||||
this.init = function(testnet) {
|
||||
self.allWallets = profileService.getWallets(testnet ? 'testnet' : 'livenet', 1)
|
||||
self.allWallets = profileService.getWallets(testnet ? 'testnet' : 'livenet');
|
||||
|
||||
var client = profileService.focusedClient;
|
||||
if (client) {
|
||||
|
|
@ -45,8 +45,6 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController',
|
|||
|
||||
$scope.openWalletsModal = function(wallets) {
|
||||
self.error = null;
|
||||
self.selectedWalletId = null;
|
||||
self.selectedWalletName = null;
|
||||
|
||||
$scope.type = 'BUY';
|
||||
$scope.wallets = wallets;
|
||||
|
|
@ -60,6 +58,15 @@ angular.module('copayApp.controllers').controller('buyCoinbaseController',
|
|||
$scope.walletsModal = modal;
|
||||
$scope.walletsModal.show();
|
||||
});
|
||||
|
||||
$scope.$on('walletSelected', function(ev, obj) {
|
||||
$timeout(function() {
|
||||
self.selectedWalletId = obj.walletId;
|
||||
self.selectedWalletName = obj.walletName;
|
||||
$scope.$apply();
|
||||
}, 100);
|
||||
$scope.walletsModal.hide();
|
||||
});
|
||||
};
|
||||
|
||||
this.buyRequest = function(token, account) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue