+
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
===================================== */