Fix Glidera resume event in the 2FA step

This commit is contained in:
Gustavo Maximiliano Cortez 2016-01-11 16:46:50 -03:00
parent 5f332a2315
commit c4ce8b8b8d
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
5 changed files with 10 additions and 1 deletions

View File

@ -9,6 +9,8 @@ angular.module('copayApp.controllers').controller('buyGlideraController',
this.success = null;
this.loading = null;
window.ignoreMobilePause = true;
var otherWallets = function(testnet) {
var network = testnet ? 'testnet' : 'livenet';
return lodash.filter(profileService.getWallets(network), function(w) {

View File

@ -3,6 +3,8 @@
angular.module('copayApp.controllers').controller('glideraController',
function($scope, $timeout, $modal, profileService, configService, storageService, glideraService, isChromeApp, animationService) {
window.ignoreMobilePause = true;
this.getAuthenticateUrl = function() {
return glideraService.getOauthCodeUrl();
};

View File

@ -14,6 +14,8 @@ angular.module('copayApp.controllers').controller('sellGlideraController',
this.currentFeeLevel = config.wallet.settings.feeLevel || 'normal';
var fc;
window.ignoreMobilePause = true;
var otherWallets = function(testnet) {
var network = testnet ? 'testnet' : 'livenet';
return lodash.filter(profileService.getWallets(network), function(w) {

View File

@ -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) {
var self = this;
window.ignoreMobilePause = false;
$rootScope.hideMenuBar = false;
$rootScope.wpInputFocused = false;
var config = configService.getSync();

View File

@ -45,7 +45,9 @@ angular.element(document).ready(function() {
}, 100);
}
setTimeout(function() {
window.ignoreMobilePause = false;
var loc = window.location;
var ignoreMobilePause = loc.toString().match(/(glidera|buy|sell)/) ? 'true' : 'false';
window.ignoreMobilePause = ignoreMobilePause;
}, 100);
}, false);