mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #4747 from cmgustavo/bug/bitcoin-uri-paypro
Fix uri handler
This commit is contained in:
commit
8a5e5d429c
|
@ -44,12 +44,21 @@ angular.module('copayApp.controllers').controller('paymentUriController',
|
|||
});
|
||||
};
|
||||
|
||||
var setAndStoreFocus = function(selectedWalletId, cb) {
|
||||
var currentWalletId = profileService.focusedClient ? profileService.focusedClient.credentials.walletId : null;
|
||||
if (currentWalletId && currentWalletId == selectedWalletId) return cb();
|
||||
profileService.setAndStoreFocus(selectedWalletId, function() {
|
||||
return cb();
|
||||
});
|
||||
};
|
||||
|
||||
this.selectWallet = function(wid) {
|
||||
var self = this;
|
||||
profileService.setAndStoreFocus(wid, function() {});
|
||||
go.walletHome();
|
||||
$timeout(function() {
|
||||
$rootScope.$emit('paymentUri', self.bitcoinURI);
|
||||
}, 1000);
|
||||
setAndStoreFocus(wid, function() {
|
||||
go.walletHome();
|
||||
$timeout(function() {
|
||||
$rootScope.$emit('paymentUri', self.bitcoinURI);
|
||||
}, 1000);
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue