made onboarding use bulma steps
This commit is contained in:
parent
d24fd41c53
commit
71c7ad4545
7 changed files with 878 additions and 80 deletions
|
@ -29,28 +29,30 @@ shutdownBtn.onclick = function(){
|
|||
}
|
||||
}
|
||||
|
||||
restartBtn.onclick = function(){
|
||||
if (! nowebpass){
|
||||
if (confirm("Really restart Onionr?")){
|
||||
fetch('/restartclean', {
|
||||
headers: {
|
||||
"token": webpass
|
||||
}})
|
||||
PNotify.notice('Node is restarting')
|
||||
if (document.location.pathname != "/onboarding/"){
|
||||
|
||||
restartBtn.onclick = function(){
|
||||
if (! nowebpass){
|
||||
if (confirm("Really restart Onionr?")){
|
||||
fetch('/restartclean', {
|
||||
headers: {
|
||||
"token": webpass
|
||||
}})
|
||||
PNotify.notice('Node is restarting')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
}
|
||||
})
|
||||
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