Skip to content
Snippets Groups Projects
Commit 20935073 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Join: always enable the button, on IOS - fix #554

parent 8dac5e01
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ function JoinChooseAccountTypeModalController($scope, $state, Modals, UIUtils, c
}
function JoinModalController($scope, $state, $interval, $timeout, UIUtils, CryptoUtils, csSettings, Modals, csWallet, BMA, parameters) {
function JoinModalController($scope, $state, $interval, $timeout, Device, UIUtils, CryptoUtils, csSettings, Modals, csWallet, BMA, parameters) {
'ngInject';
$scope.formData = {
......@@ -122,8 +122,7 @@ function JoinModalController($scope, $state, $interval, $timeout, UIUtils, Crypt
$scope.slideBehavior = {};
$scope.loading = true;
$scope.isLicenseRead = false;
$scope.isLicenseRead = Device.isIOS(); // always enable the button, on IOS fix #554
$scope.showUsername = false;
$scope.showPassword = false;
$scope.formData.computing=false;
......@@ -144,7 +143,9 @@ function JoinModalController($scope, $state, $interval, $timeout, UIUtils, Crypt
if ( $scope.licenseFileUrl.substring($scope.licenseFileUrl.length - 3) != '.txt') {
$scope.licenseFileUrl = $scope.licenseFileUrl + '.html';
}
$scope.startListenLicenseBottom();
if (!$scope.isLicenseRead) {
$scope.startListenLicenseBottom();
}
}
}
......
......@@ -141,6 +141,10 @@ angular.module('cesium.device.services', ['cesium.utils.services', 'cesium.setti
}
};
exports.isIOS = function() {
return !!navigator.userAgent.match(/iPhone | iPad | iPod/i) || ionic.Platform.isIOS();
};
exports.ready = function() {
if (started) return $q.when();
return startPromise || exports.start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment