Disable welcome page if the new features are enabled (#86)

* Disable welcome page if frontend injection is enabled
* Make button indicate redirecting
This commit is contained in:
Christiaan Goossens
2025-07-13 20:07:47 +02:00
committed by GitHub
parent 27de2bcf71
commit 0888ea0400
3 changed files with 14 additions and 4 deletions

View File

@@ -133,6 +133,8 @@ function update() {
ssoButton.style.marginRight = "1em"
ssoButton.addEventListener("click", () => {
location.href = "/auth/oidc/redirect"
ssoButton.innerHTML = "Redirecting, please wait..."
ssoButton.disabled = true
})
loginButton.parentElement.prepend(ssoButton)
}