fix slide to pay when error occurs
This commit is contained in:
parent
8dab03da26
commit
b4948ffeaf
1 changed files with 6 additions and 1 deletions
|
|
@ -223,6 +223,9 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
|
|
||||||
var setSendError = function(msg) {
|
var setSendError = function(msg) {
|
||||||
$scope.sendStatus = '';
|
$scope.sendStatus = '';
|
||||||
|
$timeout(function() {
|
||||||
|
$scope.$apply();
|
||||||
|
});
|
||||||
popupService.showAlert(gettextCatalog.getString('Error at confirm:'), msg);
|
popupService.showAlert(gettextCatalog.getString('Error at confirm:'), msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -385,7 +388,9 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
|
|
||||||
if (fromBitPayCard) {
|
if (fromBitPayCard) {
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$state.transitionTo('tabs.bitpayCard', {id: $stateParams.cardId});
|
$state.transitionTo('tabs.bitpayCard', {
|
||||||
|
id: $stateParams.cardId
|
||||||
|
});
|
||||||
}, 100);
|
}, 100);
|
||||||
} else {
|
} else {
|
||||||
$state.go('tabs.send');
|
$state.go('tabs.send');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue