mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(service): show a starting health check as a warning on the resource card
Closes #9411 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
666ac84efb
commit
50af95a70b
@@ -1,6 +1,6 @@
|
||||
@php
|
||||
[$statusType, $statusLabel] = match (true) {
|
||||
str($resource->status)->contains('running') => ['success', formatContainerStatus($resource->status)],
|
||||
str($resource->status)->contains('running') && ! str($resource->status)->contains('starting') => ['success', formatContainerStatus($resource->status)],
|
||||
str($resource->status)->contains(['starting', 'restarting', 'degraded']) => ['warning', formatContainerStatus($resource->status)],
|
||||
default => ['error', formatContainerStatus($resource->status)],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user