Fix Node Creation

Add missing defaults
This commit is contained in:
notCharles 2024-05-29 18:28:21 -04:00
parent 15caac51fb
commit e980877bbc

View File

@ -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('%'),