fix: just show cluster offline instead of cluster error

This commit is contained in:
2025-08-27 17:35:55 +02:00
parent 6b5ff2939c
commit c840a4da84

View File

@@ -155,11 +155,8 @@ function updateClusterStatusBadge(totalNodes, clientInitialized, error) {
statusText = 'Cluster Discovering...';
statusIcon = '🔍';
statusClass = 'cluster-status-discovering';
} else if (error) {
statusText = 'Cluster Error';
statusIcon = '❌';
statusClass = 'cluster-status-error';
} else if (totalNodes === 0) {
} else if (error || totalNodes === 0) {
// Show "Cluster Offline" for both errors and when no nodes are discovered
statusText = 'Cluster Offline';
statusIcon = '🔴';
statusClass = 'cluster-status-offline';