Remove the X on stopped

This commit is contained in:
Peter Steinberger 2025-06-19 14:40:36 +02:00
parent c22422e50d
commit fdc8592a6d

View file

@ -259,16 +259,15 @@ private struct ServerSection: View {
// Server Information // Server Information
VStack(alignment: .leading, spacing: 8) { VStack(alignment: .leading, spacing: 8) {
LabeledContent("Status") { LabeledContent("Status") {
HStack { if isServerHealthy || isServerRunning {
Image(systemName: isServerHealthy ? "checkmark.circle.fill" : HStack {
isServerRunning ? "exclamationmark.circle.fill" : "xmark.circle.fill" Image(systemName: isServerHealthy ? "checkmark.circle.fill" : "exclamationmark.circle.fill")
) .foregroundStyle(isServerHealthy ? .green : .orange)
.foregroundStyle(isServerHealthy ? .green : Text(isServerHealthy ? "Healthy" : "Unhealthy")
isServerRunning ? .orange : .secondary }
) } else {
Text(isServerHealthy ? "Healthy" : Text("Stopped")
isServerRunning ? "Unhealthy" : "Stopped" .foregroundStyle(.secondary)
)
} }
} }