[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user