Go to the actual wallet

This commit is contained in:
Matias Pando 2014-11-06 11:17:05 -03:00
commit bef1113fc3

View file

@ -2,7 +2,7 @@
var bitcore = require('bitcore'); var bitcore = require('bitcore');
angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, controllerUtils) { angular.module('copayApp.controllers').controller('PaymentIntentController', function($rootScope, $scope, $modal, $location, controllerUtils) {
$scope.wallets = []; $scope.wallets = [];
@ -44,7 +44,7 @@ angular.module('copayApp.controllers').controller('PaymentIntentController', fun
$scope.cancel = function() { $scope.cancel = function() {
$rootScope.pendingPayment = null; $rootScope.pendingPayment = null;
controllerUtils.setFocusedWallet($scope.wallets[0]); $location.path('/');
$modalInstance.close(); $modalInstance.close();
}; };
}; };