From ca130e50004c6ebdcfc436a760d221ea65c4cbb2 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Tue, 30 Dec 2025 11:43:43 -0800 Subject: [PATCH] Update script.js --- webui/static/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webui/static/script.js b/webui/static/script.js index 3de8162..71c041c 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -380,7 +380,10 @@ function navigateToPage(pageId) { document.querySelectorAll('.nav-button').forEach(btn => { btn.classList.remove('active'); }); - const navButton = document.querySelector(`[data-page="${pageId}"]`); + + // Handle artist-detail page specially - it should highlight the 'library' nav button + const navPageId = pageId === 'artist-detail' ? 'library' : pageId; + const navButton = document.querySelector(`[data-page="${navPageId}"]`); if (navButton) { navButton.classList.add('active'); }