Merge branch 'main' of github.com:pelican-dev/panel

This commit is contained in:
Lance Pioch 2024-05-11 22:08:30 -04:00
commit c5b441e54a
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class CreateEgg extends CreateRecord
Required for certain games to work properly when the Node has multiple public IP addresses. Required for certain games to work properly when the Node has multiple public IP addresses.
Enabling this option will disable internal networking for any servers using this egg, causing them to be unable to internally access other servers on the same node."), Enabling this option will disable internal networking for any servers using this egg, causing them to be unable to internally access other servers on the same node."),
Forms\Components\Hidden::make('script_is_privileged') Forms\Components\Hidden::make('script_is_privileged')
->helperText('The docker images available to servers using this egg.'), ->default(1),
Forms\Components\TagsInput::make('tags') Forms\Components\TagsInput::make('tags')
->placeholder('Add Tags') ->placeholder('Add Tags')
->helperText('') ->helperText('')

View File

@ -113,6 +113,7 @@ class EditEgg extends EditRecord
->reorderable() ->reorderable()
->collapsible()->collapsed() ->collapsible()->collapsed()
->orderColumn() ->orderColumn()
->addActionLabel('New Variable')
->itemLabel(fn (array $state) => $state['name']) ->itemLabel(fn (array $state) => $state['name'])
->mutateRelationshipDataBeforeCreateUsing(function (array $data): array { ->mutateRelationshipDataBeforeCreateUsing(function (array $data): array {
$data['default_value'] ??= ''; $data['default_value'] ??= '';