important fix when using bip21

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-15 03:26:22 -03:00
commit fe0a97d3d5

View file

@ -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();
};