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
No related branches found
No related tags found
No related merge requests found
......@@ -274,8 +274,8 @@
}
},
"license": {
"fr-FR": "license/license_g1-fr-FR.txt",
"en": "license/license_g1-en.txt"
"fr-FR": "license/license_g1-fr-FR",
"en": "license/license_g1-en"
},
"node": {
"host": "g1.duniter.fr",
......
......@@ -29,8 +29,8 @@ angular.module("cesium.config", [])
}
},
"license": {
"fr-FR": "license/license_g1-fr-FR.txt",
"en": "license/license_g1-en.txt"
"fr-FR": "license/license_g1-fr-FR",
"en": "license/license_g1-en"
},
"node": {
"host": "g1.duniter.org",
......
......@@ -357,13 +357,7 @@ function AppController($scope, $rootScope, $state, $ionicSideMenuDelegate, $q, $
$scope.showJoinModal = function() {
$scope.closeProfilePopover();
return Modals.showJoin()
.then(function(res){
if (!res) return;
return (res.accountType == 'member') ?
Modals.showJoinMember(res) :
Modals.showJoinWallet(res);
});
return Modals.showJoin();
};
$scope.showSettings = function() {
......
......@@ -144,7 +144,14 @@ function JoinModalController($scope, $state, $interval, $timeout, Device, UIUtil
$scope.licenseFileUrl = $scope.licenseFileUrl + '.html';
}
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', [])
function showJoin(parameters) {
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) {
......
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