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

Join: Allow to click on the "approve license" button, after 5s - fix #592

parent 2ef44f1d
Branches
Tags
No related merge requests found
...@@ -274,8 +274,8 @@ ...@@ -274,8 +274,8 @@
} }
}, },
"license": { "license": {
"fr-FR": "license/license_g1-fr-FR.txt", "fr-FR": "license/license_g1-fr-FR",
"en": "license/license_g1-en.txt" "en": "license/license_g1-en"
}, },
"node": { "node": {
"host": "g1.duniter.fr", "host": "g1.duniter.fr",
......
...@@ -29,8 +29,8 @@ angular.module("cesium.config", []) ...@@ -29,8 +29,8 @@ angular.module("cesium.config", [])
} }
}, },
"license": { "license": {
"fr-FR": "license/license_g1-fr-FR.txt", "fr-FR": "license/license_g1-fr-FR",
"en": "license/license_g1-en.txt" "en": "license/license_g1-en"
}, },
"node": { "node": {
"host": "g1.duniter.org", "host": "g1.duniter.org",
......
...@@ -357,13 +357,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $ ...@@ -357,13 +357,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $
$scope.showJoinModal = function() { $scope.showJoinModal = function() {
$scope.closeProfilePopover(); $scope.closeProfilePopover();
return Modals.showJoin() return Modals.showJoin();
.then(function(res){
if (!res) return;
return (res.accountType == 'member') ?
Modals.showJoinMember(res) :
Modals.showJoinWallet(res);
});
}; };
$scope.showSettings = function() { $scope.showSettings = function() {
......
...@@ -144,7 +144,14 @@ function JoinModalController($scope, $state, $interval, $timeout, Device, UIUtil ...@@ -144,7 +144,14 @@ function JoinModalController($scope, $state, $interval, $timeout, Device, UIUtil
$scope.licenseFileUrl = $scope.licenseFileUrl + '.html'; $scope.licenseFileUrl = $scope.licenseFileUrl + '.html';
} }
if (!$scope.isLicenseRead) { if (!$scope.isLicenseRead) {
$scope.startListenLicenseBottom(); //$scope.startListenLicenseBottom();
// Make sure to enable the next button when error occured - Fix issue #592
$timeout(function() {
if (!$scope.isLicenseRead) {
$scope.isLicenseRead = true;
}
}, 5000);
} }
} }
} }
......
...@@ -173,7 +173,13 @@ angular.module('cesium.modal.services', []) ...@@ -173,7 +173,13 @@ angular.module('cesium.modal.services', [])
function showJoin(parameters) { function showJoin(parameters) {
return ModalUtils.show('templates/join/modal_choose_account_type.html','JoinChooseAccountTypeModalCtrl', return ModalUtils.show('templates/join/modal_choose_account_type.html','JoinChooseAccountTypeModalCtrl',
parameters); parameters)
.then(function(res){
if (!res) return;
return (res.accountType == 'member') ?
showJoinMember(res) :
showJoinWallet(res);
});
} }
function showJoinMember(parameters) { function showJoinMember(parameters) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment