mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-06 11:25:52 +00:00
Remove the X on stopped
This commit is contained in:
parent
c22422e50d
commit
fdc8592a6d
1 changed files with 9 additions and 10 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue