Hide Sync page in sidebar for SoulSync standalone mode

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.
This commit is contained in:
Broque Thomas 2026-04-18 00:27:38 -07:00
parent d688e7fa15
commit 12e9c0034b

View file

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