fix: just show cluster offline instead of cluster error
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user