From 12e9c0034b87cb5f2595566d6d4b19a2885d425a Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sat, 18 Apr 2026 00:27:38 -0700 Subject: [PATCH] Hide Sync page in sidebar for SoulSync standalone mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No media server to sync playlists to — sync page is irrelevant. M3U generation is still available via settings toggle and download modal buttons for standalone users who want playlist files. --- webui/static/script.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webui/static/script.js b/webui/static/script.js index edbf9542..6cb2ad14 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -396,6 +396,10 @@ function handleServiceStatusUpdate(data) { // Update downloads nav badge from status push if (data.active_downloads !== undefined) _updateDlNavBadge(data.active_downloads); + // Hide sync nav button for standalone mode (no server to sync playlists to) + const syncNav = document.querySelector('[data-page="sync"]'); + if (syncNav) syncNav.style.display = (data.media_server?.type === 'soulsync') ? 'none' : ''; + // Update enrichment service cards if (data.enrichment) renderEnrichmentCards(data.enrichment); @@ -39253,6 +39257,10 @@ async function fetchAndUpdateServiceStatus() { // Update downloads nav badge if (data.active_downloads !== undefined) _updateDlNavBadge(data.active_downloads); + // Hide sync nav for standalone mode + const syncNav = document.querySelector('[data-page="sync"]'); + if (syncNav) syncNav.style.display = (data.media_server?.type === 'soulsync') ? 'none' : ''; + // Update enrichment service cards if (data.enrichment) renderEnrichmentCards(data.enrichment);