[fix](trx-frontend-http): redirect to login when navigating to protected tabs unauthenticated, right-align recorder table buttons

Show the auth gate instead of silently blocking navigation to non-main
tabs when not logged in. Also fix recorder file table layout so the file
column takes full width and action buttons are right-aligned.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-04-04 12:54:11 +02:00
parent 7e15c0b5e4
commit 02ed6d918c
2 changed files with 11 additions and 1 deletions
@@ -4433,7 +4433,10 @@ function updateTabHistory(name, replaceHistory = false) {
function navigateToTab(name, options = {}) {
const { updateHistory = true, replaceHistory = false } = options;
if (authEnabled && !authRole && name !== "main") return;
if (authEnabled && !authRole && name !== "main") {
showAuthGate(false);
return;
}
const btn = document.querySelector(`.tab-bar .tab[data-tab="${name}"]`);
if (!btn) return;
_activeTab = name;