From fdc8592a6ddd954c33eece802a478760e3cc01e2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 19 Jun 2025 14:40:36 +0200 Subject: [PATCH] Remove the X on stopped --- .../Views/Settings/DebugSettingsView.swift | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/VibeTunnel/Presentation/Views/Settings/DebugSettingsView.swift b/VibeTunnel/Presentation/Views/Settings/DebugSettingsView.swift index 162c86b8..374bcc64 100644 --- a/VibeTunnel/Presentation/Views/Settings/DebugSettingsView.swift +++ b/VibeTunnel/Presentation/Views/Settings/DebugSettingsView.swift @@ -259,16 +259,15 @@ private struct ServerSection: View { // Server Information VStack(alignment: .leading, spacing: 8) { LabeledContent("Status") { - HStack { - Image(systemName: isServerHealthy ? "checkmark.circle.fill" : - isServerRunning ? "exclamationmark.circle.fill" : "xmark.circle.fill" - ) - .foregroundStyle(isServerHealthy ? .green : - isServerRunning ? .orange : .secondary - ) - Text(isServerHealthy ? "Healthy" : - isServerRunning ? "Unhealthy" : "Stopped" - ) + if isServerHealthy || isServerRunning { + HStack { + Image(systemName: isServerHealthy ? "checkmark.circle.fill" : "exclamationmark.circle.fill") + .foregroundStyle(isServerHealthy ? .green : .orange) + Text(isServerHealthy ? "Healthy" : "Unhealthy") + } + } else { + Text("Stopped") + .foregroundStyle(.secondary) } }