mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-25 00:44:44 +02:00
Cast the enum to a string
This commit is contained in:
parent
2bb1caf308
commit
3db6593b0e
@ -623,7 +623,7 @@ class ServerResource extends Resource
|
|||||||
'suspended' => 'tabler-heart-cancel',
|
'suspended' => 'tabler-heart-cancel',
|
||||||
default => 'tabler-heart-question',
|
default => 'tabler-heart-question',
|
||||||
})
|
})
|
||||||
->color(fn (string $state): string => match ($state) {
|
->color(fn ($state): string => match ($state) {
|
||||||
'running' => 'success',
|
'running' => 'success',
|
||||||
'installing', 'restarting' => 'primary',
|
'installing', 'restarting' => 'primary',
|
||||||
'paused', 'removing' => 'warning',
|
'paused', 'removing' => 'warning',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user