fix: Sign out button in settings dropdown not working
CI / lint (push) Failing after 21s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Failing after 10s

The header dropdown 'Sign out' menu item used onclick='handleLogout()'
but handleLogout was never defined as a global function.

Added window.handleLogout in auth.js that delegates to
AuthManager.logout(), same as the existing logout-btn handler.
This commit is contained in:
2026-06-21 11:14:03 -04:00
parent dec46cd5ab
commit 6d4a45797e
+3
View File
@@ -201,6 +201,9 @@ const AuthManager = {
const logoutBtn = document.getElementById("logout-btn");
if (logoutBtn) logoutBtn.addEventListener("click", () => AuthManager.logout());
// Also wire up the header dropdown "Sign out" (onclick="handleLogout()")
window.handleLogout = () => AuthManager.logout();
const adminRow = document.getElementById("admin-menu-row");
if (adminRow) {
if (user.role === "admin") {