mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 08:34:45 +02:00
Don’t allow eggs to be selected for deletion
This commit is contained in:
parent
fa379be99b
commit
bab4315bb7
@ -134,6 +134,7 @@ class EggResource extends Resource
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->defaultPaginationPageOption(25)
|
->defaultPaginationPageOption(25)
|
||||||
|
->checkIfRecordIsSelectableUsing(fn (Egg $egg) => $egg->servers_count <= 0)
|
||||||
->columns([
|
->columns([
|
||||||
Tables\Columns\TextColumn::make('id')
|
Tables\Columns\TextColumn::make('id')
|
||||||
->label('Id')
|
->label('Id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user