Also add that here

Prevent 500's on server create
This commit is contained in:
Charles 2024-06-15 12:36:15 -04:00
parent fe4e6271fb
commit f4c3c89c17

View File

@ -655,18 +655,21 @@ class CreateServer extends CreateRecord
->suffixIcon('tabler-network') ->suffixIcon('tabler-network')
->required() ->required()
->numeric() ->numeric()
->minValue(0)
->default(0), ->default(0),
Forms\Components\TextInput::make('database_limit') Forms\Components\TextInput::make('database_limit')
->label('Databases') ->label('Databases')
->suffixIcon('tabler-database') ->suffixIcon('tabler-database')
->required() ->required()
->numeric() ->numeric()
->minValue(0)
->default(0), ->default(0),
Forms\Components\TextInput::make('backup_limit') Forms\Components\TextInput::make('backup_limit')
->label('Backups') ->label('Backups')
->suffixIcon('tabler-copy-check') ->suffixIcon('tabler-copy-check')
->required() ->required()
->numeric() ->numeric()
->minValue(0)
->default(0), ->default(0),
]), ]),
Forms\Components\Fieldset::make('Docker Settings') Forms\Components\Fieldset::make('Docker Settings')