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:
Miguel Cabrerizo
2023-08-10 19:35:52 +02:00
committed by GitHub
parent 85423b73e9
commit dfd469c66f
2 changed files with 16 additions and 0 deletions

View 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");
}