login indicator duplicity bugfix

This commit is contained in:
Václav Šmejkal 2024-05-08 20:50:42 +02:00
parent 3f0e07cba2
commit 815a929ac5
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -59,8 +59,10 @@ function show_register()
function set_login_uname(uname)
{
if (document.getElementById("login_indicator").style.visibility == "visible") return;
document.getElementById("login_indicator").style.visibility = "visible";
document.getElementById("login_indicator").innerText += " " + uname;
document.getElementById("login_indicator_text").innerText += " " + uname;
document.getElementById("login_buttons").style.visibility = "hidden";
document.getElementById("logout_button").style.visibility = "visible";