diff --git a/html/setup.html b/html/setup.html index 0e21b52..7eb7144 100644 --- a/html/setup.html +++ b/html/setup.html @@ -446,6 +446,7 @@
{{ .lang.Strings.back }} {{ .lang.Strings.submit }} + {{ .lang.EndPage.refreshPage }}
diff --git a/lang/setup/en-us.json b/lang/setup/en-us.json index 8fc6104..a9dd4ff 100644 --- a/lang/setup/en-us.json +++ b/lang/setup/en-us.json @@ -25,7 +25,8 @@ }, "endPage": { "finished": "Finished!", - "restartMessage": "There are more settings you can configure on the admin page. Click below to restart, then refresh the page." + "restartMessage": "There are more settings you can configure on the admin page. Click below to restart, then refresh the page.", + "refreshPage": "Refresh" }, "language": { "title": "Language", diff --git a/ts/setup.ts b/ts/setup.ts index 4639eab..821f188 100644 --- a/ts/setup.ts +++ b/ts/setup.ts @@ -317,9 +317,14 @@ const serialize = () => { _post("/config", config, (req: XMLHttpRequest) => { if (req.readyState == 4) { toggleLoader(restartButton); - restartButton.classList.add("~positive"); - restartButton.classList.remove("~urge"); - restartButton.textContent = window.lang.strings("success"); + restartButton.parentElement.querySelector("span.back").classList.add("unfocused"); + restartButton.classList.add("unfocused"); + const refresh = document.getElementById("refresh") as HTMLSpanElement; + refresh.classList.remove("unfocused"); + refresh.onclick = () => { + let host = window.location.href.split("#")[0].split("?")[0] + settings["ui"]["url_base"].value; + window.location.href = host; + }; } }, true, true); }