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
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)
}
}