From cdf0b5f08ca67b463c0c740df56c32b9e5fbf5e2 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 28 Sep 2025 22:09:53 -0400 Subject: [PATCH] Fix nav auth button visibility after login --- js/app.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/app.js b/js/app.js index 9d0fb2bb..8f3ec6f9 100644 --- a/js/app.js +++ b/js/app.js @@ -5265,6 +5265,8 @@ class bitvidApp { // Hide login button if present if (this.loginButton) { this.loginButton.classList.add("hidden"); + this.loginButton.setAttribute("hidden", ""); + this.loginButton.style.display = "none"; } // Optionally hide logout or userStatus if (this.logoutButton) { @@ -5277,9 +5279,13 @@ class bitvidApp { // Show the upload button, profile button, etc. if (this.uploadButton) { this.uploadButton.classList.remove("hidden"); + this.uploadButton.removeAttribute("hidden"); + this.uploadButton.style.display = "inline-flex"; } if (this.profileButton) { this.profileButton.classList.remove("hidden"); + this.profileButton.removeAttribute("hidden"); + this.profileButton.style.display = "inline-flex"; } // Show the "Subscriptions" link if it exists @@ -5313,6 +5319,8 @@ class bitvidApp { // Show the login button again if (this.loginButton) { this.loginButton.classList.remove("hidden"); + this.loginButton.removeAttribute("hidden"); + this.loginButton.style.display = ""; } // Hide logout or userStatus @@ -5329,9 +5337,13 @@ class bitvidApp { // Hide upload & profile if (this.uploadButton) { this.uploadButton.classList.add("hidden"); + this.uploadButton.setAttribute("hidden", ""); + this.uploadButton.style.display = "none"; } if (this.profileButton) { this.profileButton.classList.add("hidden"); + this.profileButton.setAttribute("hidden", ""); + this.profileButton.style.display = "none"; } if (this.profileChannelLink) { this.profileChannelLink.classList.add("hidden");