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...';
|
statusText = 'Cluster Discovering...';
|
||||||
statusIcon = '🔍';
|
statusIcon = '🔍';
|
||||||
statusClass = 'cluster-status-discovering';
|
statusClass = 'cluster-status-discovering';
|
||||||
} else if (error) {
|
} else if (error || totalNodes === 0) {
|
||||||
statusText = 'Cluster Error';
|
// Show "Cluster Offline" for both errors and when no nodes are discovered
|
||||||
statusIcon = '❌';
|
|
||||||
statusClass = 'cluster-status-error';
|
|
||||||
} else if (totalNodes === 0) {
|
|
||||||
statusText = 'Cluster Offline';
|
statusText = 'Cluster Offline';
|
||||||
statusIcon = '🔴';
|
statusIcon = '🔴';
|
||||||
statusClass = 'cluster-status-offline';
|
statusClass = 'cluster-status-offline';
|
||||||
|
|||||||
Reference in New Issue
Block a user