mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 08:44:46 +02:00
commit
73babfa2b3
@ -344,7 +344,12 @@ class CreateServer extends CreateRecord
|
|||||||
]))
|
]))
|
||||||
->schema([
|
->schema([
|
||||||
Forms\Components\Placeholder::make('Select an egg first to show its variables!')
|
Forms\Components\Placeholder::make('Select an egg first to show its variables!')
|
||||||
->hidden(fn (Forms\Get $get) => !empty($get('server_variables'))),
|
->hidden(fn (Forms\Get $get) => $get('egg_id')),
|
||||||
|
|
||||||
|
Forms\Components\Placeholder::make('The selected egg has no variables!')
|
||||||
|
->hidden(fn (Forms\Get $get) => !$get('egg_id') ||
|
||||||
|
Egg::query()->find($get('egg_id'))?->variables()?->count()
|
||||||
|
),
|
||||||
|
|
||||||
Forms\Components\Repeater::make('server_variables')
|
Forms\Components\Repeater::make('server_variables')
|
||||||
->relationship('serverVariables')
|
->relationship('serverVariables')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user