mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +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
|
// 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)
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue