onboarding work, now waits to start daemon timers

This commit is contained in:
Kevin Froman 2019-11-30 02:42:49 -06:00
parent fb975dc52c
commit 1de668a9e5
9 changed files with 102 additions and 28 deletions

View file

@ -39,6 +39,7 @@ function sendConfig(configInfo){
},
body: JSON.stringify({configInfo})
}).then(function(data) {
window.location.href = window.location.origin + '/' + window.location.hash
})
}
@ -54,6 +55,7 @@ document.getElementById('onboardingForm').onsubmit = function(e){
submitInfo.deterministic = getCheckValue('useDeterministic')
submitInfo.mail = getCheckValue('useMail')
submitInfo.circles = getCheckValue('useCircles')
submitInfo.useDark = getCheckValue('useDarkTheme')
if (submitInfo.donate){
openDonateModal(submitInfo)

View file

@ -41,3 +41,16 @@ restartBtn.onclick = function(){
}
}
fetch('/config/get/onboarding.done', {
method: 'GET',
headers: {
"content-type": "application/json",
"token": webpass
}})
.then((resp) => resp.text()) // Transform the data into text
.then(function(data) {
if (data === 'false'){
window.location.href = window.location.pathname = "/onboarding/" + window.location.hash
}
})