mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-28 09:14:44 +02:00
Add defaults to create server.
This commit is contained in:
parent
1db8c209fb
commit
d4dd1349da
@ -511,6 +511,7 @@ class CreateServer extends CreateRecord
|
||||
->disabled(fn (Forms\Get $get) => $get('unlimited_mem'))
|
||||
->label('Memory Limit')
|
||||
->suffix('MB')
|
||||
->default(0)
|
||||
->required()
|
||||
->inlineLabel()
|
||||
->columnSpan(2)
|
||||
@ -536,6 +537,7 @@ class CreateServer extends CreateRecord
|
||||
->disabled(fn (Forms\Get $get) => $get('unlimited_disk'))
|
||||
->label('Disk Space Limit')
|
||||
->suffix('MB')
|
||||
->default(0)
|
||||
->required()
|
||||
->inlineLabel()
|
||||
->columnSpan(2)
|
||||
@ -561,6 +563,7 @@ class CreateServer extends CreateRecord
|
||||
->disabled(fn (Forms\Get $get) => $get('unlimited_cpu'))
|
||||
->label('CPU Limit')
|
||||
->suffix('%')
|
||||
->default(0)
|
||||
->required()
|
||||
->inlineLabel()
|
||||
->columnSpan(2)
|
||||
@ -569,11 +572,11 @@ class CreateServer extends CreateRecord
|
||||
Forms\Components\Hidden::make('io')
|
||||
->helperText('The IO performance relative to other running containers')
|
||||
->label('Block IO Proportion')
|
||||
//->numeric()
|
||||
//->minValue(0)
|
||||
//->maxValue(1000)
|
||||
//->step(10)
|
||||
->required(),
|
||||
// ->numeric()
|
||||
// ->minValue(0)
|
||||
// ->maxValue(1000)
|
||||
// ->step(10)
|
||||
|
||||
Forms\Components\ToggleButtons::make('swap_support')
|
||||
->label('Enable Swap Memory')
|
||||
@ -597,6 +600,7 @@ class CreateServer extends CreateRecord
|
||||
->suffix('MB')
|
||||
->minValue(-1)
|
||||
->columnSpan(2)
|
||||
->default(0)
|
||||
->inlineLabel()
|
||||
->required()
|
||||
->numeric(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user