fix: add default color for service status in ServiceResource
This commit is contained in:
@@ -169,6 +169,7 @@ class ServiceResource extends Resource
|
|||||||
'active' => 'success',
|
'active' => 'success',
|
||||||
'cancelled' => 'danger',
|
'cancelled' => 'danger',
|
||||||
'suspended' => 'warning',
|
'suspended' => 'warning',
|
||||||
|
default => 'gray',
|
||||||
})
|
})
|
||||||
->formatStateUsing(fn (string $state) => ucfirst($state))
|
->formatStateUsing(fn (string $state) => ucfirst($state))
|
||||||
->label('Status')
|
->label('Status')
|
||||||
|
|||||||
Reference in New Issue
Block a user