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);