onboarding work, now waits to start daemon timers
This commit is contained in:
parent
fb975dc52c
commit
1de668a9e5
9 changed files with 102 additions and 28 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue