mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 07:34:45 +02:00
Fix Node Creation
Add missing defaults
This commit is contained in:
parent
15caac51fb
commit
e980877bbc
@ -329,6 +329,7 @@ class CreateNode extends CreateRecord
|
|||||||
true => 'primary',
|
true => 'primary',
|
||||||
false => 'warning',
|
false => 'warning',
|
||||||
])
|
])
|
||||||
|
->default(0)
|
||||||
->columnSpan(2),
|
->columnSpan(2),
|
||||||
Forms\Components\TextInput::make('cpu')
|
Forms\Components\TextInput::make('cpu')
|
||||||
->dehydratedWhenHidden()
|
->dehydratedWhenHidden()
|
||||||
@ -346,6 +347,7 @@ class CreateNode extends CreateRecord
|
|||||||
->hintIconTooltip('The % allowable to go over the set limit.')
|
->hintIconTooltip('The % allowable to go over the set limit.')
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->numeric()
|
->numeric()
|
||||||
|
->default(0)
|
||||||
->minValue(-1)
|
->minValue(-1)
|
||||||
->maxValue(100)
|
->maxValue(100)
|
||||||
->suffix('%'),
|
->suffix('%'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user