mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-11 10:18:59 +02:00
Simplify logic
This commit is contained in:
parent
9c81c0ce18
commit
f480a271b3
@ -320,9 +320,7 @@ class CreateServer extends CreateRecord
|
||||
->hidden(fn (Forms\Get $get) => $this->egg),
|
||||
|
||||
Forms\Components\Placeholder::make('The selected egg has no variables!')
|
||||
->hidden(fn (Forms\Get $get) => !$this->egg ||
|
||||
$this->egg->variables()?->count()
|
||||
),
|
||||
->hidden(fn (Forms\Get $get) => $this->egg?->variables()?->count() !== 0),
|
||||
|
||||
Forms\Components\Repeater::make('server_variables')
|
||||
->relationship('serverVariables')
|
||||
|
Loading…
x
Reference in New Issue
Block a user