mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 14:24:46 +02:00
Fix creating egg variables
This commit is contained in:
parent
0b950832c2
commit
8c9c2c080a
@ -105,10 +105,12 @@ class EggResource extends Resource
|
|||||||
->schema([
|
->schema([
|
||||||
Forms\Components\TextInput::make('name')
|
Forms\Components\TextInput::make('name')
|
||||||
->live()
|
->live()
|
||||||
->debounce(1000)
|
->debounce(750)
|
||||||
->maxLength(191)
|
->maxLength(191)
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
->afterStateUpdated(fn (Forms\Set $set, $state) => $set('env_variable', str($state)->trim()->snake()->upper()))
|
->afterStateUpdated(fn (Forms\Set $set, $state) =>
|
||||||
|
$set('env_variable', str($state)->trim()->snake()->upper()->toString())
|
||||||
|
)
|
||||||
->required(),
|
->required(),
|
||||||
Forms\Components\Textarea::make('description')->columnSpanFull(),
|
Forms\Components\Textarea::make('description')->columnSpanFull(),
|
||||||
Forms\Components\TextInput::make('env_variable')
|
Forms\Components\TextInput::make('env_variable')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user