diff --git a/app/static/index.html b/app/static/index.html index bdaf3c8..7a5dacf 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -4365,13 +4365,34 @@ function showError(containerId, message) { const container = document.getElementById(containerId); - container.innerHTML = ` -
${message}
+ + // If it's metrics-grid, show error above the cards, not replace them + if (containerId === 'metrics-grid') { + // Find the parent container to add error above + const parentContainer = container.parentElement; + const errorDiv = document.createElement('div'); + errorDiv.className = 'pf-c-alert pf-m-danger'; + errorDiv.style.marginBottom = '16px'; + errorDiv.innerHTML = ` +${message}