Fix creating new node

This commit is contained in:
Lance Pioch 2024-05-31 16:03:12 -04:00
parent 264d3498a6
commit 8eb2c23420

View File

@ -329,7 +329,6 @@ 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()
@ -338,6 +337,7 @@ class CreateNode extends CreateRecord
->suffix('%') ->suffix('%')
->columnSpan(2) ->columnSpan(2)
->numeric() ->numeric()
->default(0)
->minValue(0), ->minValue(0),
Forms\Components\TextInput::make('cpu_overallocate') Forms\Components\TextInput::make('cpu_overallocate')
->dehydratedWhenHidden() ->dehydratedWhenHidden()