mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-26 11:21:06 +00:00
fix: go back to user selection from other user (#6255)
* fix: go back to user selection from other user * fix: replace button with left arrow
This commit is contained in:
12
internal/api/ui/login/static/resources/scripts/go_back.js
Normal file
12
internal/api/ui/login/static/resources/scripts/go_back.js
Normal file
@@ -0,0 +1,12 @@
|
||||
document.getElementById("back-button").addEventListener("click", goBack);
|
||||
document.getElementById("back-button").style.visibility = wereInUserSelection()
|
||||
? "visible"
|
||||
: "hidden";
|
||||
|
||||
function goBack() {
|
||||
history.back();
|
||||
}
|
||||
|
||||
function wereInUserSelection() {
|
||||
return window.location.href.includes("userselection");
|
||||
}
|
||||
Reference in New Issue
Block a user