mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 15:34:44 +02:00
Fix creating egg variables
This commit is contained in:
parent
0b950832c2
commit
8c9c2c080a
@ -105,10 +105,12 @@ class EggResource extends Resource
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('name')
|
||||
->live()
|
||||
->debounce(1000)
|
||||
->debounce(750)
|
||||
->maxLength(191)
|
||||
->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(),
|
||||
Forms\Components\Textarea::make('description')->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('env_variable')
|
||||
|
Loading…
x
Reference in New Issue
Block a user