important fix when using bip21
This commit is contained in:
parent
b9d66b3a12
commit
fe0a97d3d5
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ var bitcore = require('bitcore');
|
|||
angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, $location, controllerUtils) {
|
||||
|
||||
$scope.wallets = [];
|
||||
$rootScope.title = 'Payment intent';
|
||||
$rootScope.starting = true;
|
||||
|
||||
var wids = _.pluck($rootScope.iden.listWallets(), 'id');
|
||||
_.each(wids, function(wid) {
|
||||
|
|
@ -12,6 +14,7 @@ angular.module('copayApp.controllers').controller('PaymentIntentController', fun
|
|||
if (w && w.isReady()) {
|
||||
|
||||
$scope.wallets.push(w);
|
||||
$rootScope.starting = false;
|
||||
controllerUtils.clearBalanceCache(w);
|
||||
controllerUtils.updateBalance(w, function() {
|
||||
$rootScope.$digest();
|
||||
|
|
@ -40,6 +43,7 @@ angular.module('copayApp.controllers').controller('PaymentIntentController', fun
|
|||
$scope.wallets = items;
|
||||
$scope.ok = function(selectedItem) {
|
||||
controllerUtils.setPaymentWallet(selectedItem);
|
||||
console.log('[paymentIntent.js:45]',selectedItem); //TODO
|
||||
$modalInstance.close();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue