diff --git a/webui/index.html b/webui/index.html index e3c1b192..57ef243f 100644 --- a/webui/index.html +++ b/webui/index.html @@ -279,17 +279,17 @@

Service Status

-
+
- Spotify + Metadata Source
-
+
- Plex + Media Server
-
+
- Soulseek + Download Source
@@ -616,9 +616,9 @@

Service Status

-
+
- Spotify + Metadata Source
@@ -629,9 +629,9 @@ onclick="testDashboardConnection(getActiveMetadataSource())">Test Connection
-
+
- Server + Media Server
@@ -642,9 +642,9 @@ Connection
-
+
- Soulseek + Download Source
diff --git a/webui/static/shared-helpers.js b/webui/static/shared-helpers.js index 8b8e7388..c9635f12 100644 --- a/webui/static/shared-helpers.js +++ b/webui/static/shared-helpers.js @@ -3282,9 +3282,14 @@ function getMetadataSourcePresentation(metadataStatus, spotifyStatus) { } function updateServiceStatus(service, statusData, spotifyStatus = null) { + const serviceCard = document.getElementById(`${service}-service-card`); const indicator = document.getElementById(`${service}-status-indicator`); const statusText = document.getElementById(`${service}-status-text`); + if (serviceCard) { + serviceCard.dataset.statusReady = 'true'; + } + if (indicator && statusText) { if (service === 'metadata-source') { const presentation = getMetadataSourcePresentation(statusData || {}, spotifyStatus || {}); @@ -3353,6 +3358,7 @@ function updateServiceStatus(service, statusData, spotifyStatus = null) { function updateSidebarServiceStatus(service, statusData, spotifyStatus = null) { const indicator = document.getElementById(`${service}-indicator`); if (indicator) { + indicator.dataset.statusReady = 'true'; const dot = indicator.querySelector('.status-dot'); const nameElement = indicator.querySelector('.status-name'); diff --git a/webui/static/style.css b/webui/static/style.css index cbd549e2..1f42a95a 100644 --- a/webui/static/style.css +++ b/webui/static/style.css @@ -2820,6 +2820,19 @@ body.helper-mode-active #dashboard-activity-feed:hover { font-weight: 400; } +.status-indicator[data-status-ready="false"] .status-dot, +.status-indicator[data-status-ready="false"] .status-name, +.service-card[data-status-ready="false"] .service-card-title, +.service-card[data-status-ready="false"] .service-card-indicator, +.service-card[data-status-ready="false"] .service-card-status-text, +.service-card[data-status-ready="false"] .service-card-response-time { + visibility: hidden; +} + +#metadata-source-service-card[data-status-ready="false"] .service-card-button { + visibility: hidden; +} + /* ===================================== MAIN CONTENT AREA STYLING ===================================== */