From c840a4da84bafd36d8027dab37ac449c592edbfe Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Wed, 27 Aug 2025 17:35:55 +0200 Subject: [PATCH] fix: just show cluster offline instead of cluster error --- public/app.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/public/app.js b/public/app.js index 724824a..7fe5b8a 100644 --- a/public/app.js +++ b/public/app.js @@ -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';