From d5cd2c62049b05f95ff04c8aab32ea7381e79946 Mon Sep 17 00:00:00 2001 From: Stanislaw Grams Date: Fri, 13 Feb 2026 08:54:26 +0100 Subject: [PATCH] [fix](trx-frontend-http): show guest button after logout when available After logout, check if guest mode is available and show the "Continue as Guest" button if no rx_passphrase is configured. Previously, authLogout() always passed false to showAuthGate(), hiding the guest button. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Stanislaw Grams --- .../trx-frontend/trx-frontend-http/assets/web/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js index 80485cc..bf1bd4f 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/app.js @@ -54,7 +54,11 @@ async function authLogout() { document.getElementById("loading").style.display = "none"; document.getElementById("auth-passphrase").value = ""; updateAuthUI(); - showAuthGate(false); + + // Check if guest mode is available after logout + const authStatus = await checkAuthStatus(); + const allowGuest = authStatus.role === "rx"; + showAuthGate(allowGuest); } catch (e) { console.error("Logout failed:", e); showAuthError("Logout failed");