Update wallet after resume app. Fix payment-intent
This commit is contained in:
parent
06fef225bd
commit
dd3ff93edd
1 changed files with 5 additions and 2 deletions
|
|
@ -340,7 +340,7 @@ angular
|
||||||
url: '/cordova/:status',
|
url: '/cordova/:status',
|
||||||
views: {
|
views: {
|
||||||
'main': {
|
'main': {
|
||||||
controller: function($rootScope, $stateParams, go) {
|
controller: function($rootScope, $stateParams, $timeout, go) {
|
||||||
switch ($stateParams.status) {
|
switch ($stateParams.status) {
|
||||||
case 'resume':
|
case 'resume':
|
||||||
$rootScope.$emit('Local/Resume');
|
$rootScope.$emit('Local/Resume');
|
||||||
|
|
@ -349,6 +349,9 @@ angular
|
||||||
$rootScope.$emit('Local/Offline');
|
$rootScope.$emit('Local/Offline');
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
$timeout(function() {
|
||||||
|
$rootScope.$emit('Local/SetTab', 'walletHome', true);
|
||||||
|
}, 100);
|
||||||
go.walletHome();
|
go.walletHome();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -463,7 +466,7 @@ angular
|
||||||
|
|
||||||
function animateTransition(fromState, toState, event) {
|
function animateTransition(fromState, toState, event) {
|
||||||
|
|
||||||
if (isaosp)
|
if (isaosp || toState.name == 'cordova' || toState.name == 'uri-payment')
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Animation in progress?
|
// Animation in progress?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue