mirror of https://github.com/BTCPrivate/copay.git
Fix Glidera resume event in the 2FA step
This commit is contained in:
parent
5f332a2315
commit
c4ce8b8b8d
|
@ -9,6 +9,8 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
|
||||||
this.success = null;
|
this.success = null;
|
||||||
this.loading = null;
|
this.loading = null;
|
||||||
|
|
||||||
|
window.ignoreMobilePause = true;
|
||||||
|
|
||||||
var otherWallets = function(testnet) {
|
var otherWallets = function(testnet) {
|
||||||
var network = testnet ? 'testnet' : 'livenet';
|
var network = testnet ? 'testnet' : 'livenet';
|
||||||
return lodash.filter(profileService.getWallets(network), function(w) {
|
return lodash.filter(profileService.getWallets(network), function(w) {
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
angular.module('copayApp.controllers').controller('glideraController',
|
angular.module('copayApp.controllers').controller('glideraController',
|
||||||
function($scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp, animationService) {
|
function($scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp, animationService) {
|
||||||
|
|
||||||
|
window.ignoreMobilePause = true;
|
||||||
|
|
||||||
this.getAuthenticateUrl = function() {
|
this.getAuthenticateUrl = function() {
|
||||||
return glideraService.getOauthCodeUrl();
|
return glideraService.getOauthCodeUrl();
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,6 +14,8 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
|
||||||
this.currentFeeLevel = config.wallet.settings.feeLevel || 'normal';
|
this.currentFeeLevel = config.wallet.settings.feeLevel || 'normal';
|
||||||
var fc;
|
var fc;
|
||||||
|
|
||||||
|
window.ignoreMobilePause = true;
|
||||||
|
|
||||||
var otherWallets = function(testnet) {
|
var otherWallets = function(testnet) {
|
||||||
var network = testnet ? 'testnet' : 'livenet';
|
var network = testnet ? 'testnet' : 'livenet';
|
||||||
return lodash.filter(profileService.getWallets(network), function(w) {
|
return lodash.filter(profileService.getWallets(network), function(w) {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, ledger, bwsError, confirmDialog, txFormatService, animationService, addressbookService, go, feeService) {
|
angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, addressService, ledger, bwsError, confirmDialog, txFormatService, animationService, addressbookService, go, feeService) {
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
window.ignoreMobilePause = false;
|
||||||
$rootScope.hideMenuBar = false;
|
$rootScope.hideMenuBar = false;
|
||||||
$rootScope.wpInputFocused = false;
|
$rootScope.wpInputFocused = false;
|
||||||
var config = configService.getSync();
|
var config = configService.getSync();
|
||||||
|
|
|
@ -45,7 +45,9 @@ angular.element(document).ready(function() {
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
window.ignoreMobilePause = false;
|
var loc = window.location;
|
||||||
|
var ignoreMobilePause = loc.toString().match(/(glidera|buy|sell)/) ? 'true' : 'false';
|
||||||
|
window.ignoreMobilePause = ignoreMobilePause;
|
||||||
}, 100);
|
}, 100);
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue