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:
parent
d688e7fa15
commit
12e9c0034b
1 changed files with 8 additions and 0 deletions
|
|
@ -396,6 +396,10 @@ function handleServiceStatusUpdate(data) {
|
||||||
// Update downloads nav badge from status push
|
// Update downloads nav badge from status push
|
||||||
if (data.active_downloads !== undefined) _updateDlNavBadge(data.active_downloads);
|
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
|
// Update enrichment service cards
|
||||||
if (data.enrichment) renderEnrichmentCards(data.enrichment);
|
if (data.enrichment) renderEnrichmentCards(data.enrichment);
|
||||||
|
|
||||||
|
|
@ -39253,6 +39257,10 @@ async function fetchAndUpdateServiceStatus() {
|
||||||
// Update downloads nav badge
|
// Update downloads nav badge
|
||||||
if (data.active_downloads !== undefined) _updateDlNavBadge(data.active_downloads);
|
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
|
// Update enrichment service cards
|
||||||
if (data.enrichment) renderEnrichmentCards(data.enrichment);
|
if (data.enrichment) renderEnrichmentCards(data.enrichment);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue