mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 13:14:45 +02:00
Merge branch 'pelican-dev:main' into backport/ptero-backup-node-check
This commit is contained in:
commit
1742061807
@ -3,7 +3,6 @@
|
|||||||
namespace App\Filament\Resources\DatabaseHostResource\RelationManagers;
|
namespace App\Filament\Resources\DatabaseHostResource\RelationManagers;
|
||||||
|
|
||||||
use App\Models\Database;
|
use App\Models\Database;
|
||||||
use App\Models\DatabaseHost;
|
|
||||||
use App\Services\Databases\DatabasePasswordService;
|
use App\Services\Databases\DatabasePasswordService;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
use Filament\Forms\Components\Actions\Action;
|
use Filament\Forms\Components\Actions\Action;
|
||||||
@ -16,7 +15,7 @@ class DatabasesRelationManager extends RelationManager
|
|||||||
{
|
{
|
||||||
protected static string $relationship = 'databases';
|
protected static string $relationship = 'databases';
|
||||||
|
|
||||||
protected $listeners = ['refresh'=>'refreshForm'];
|
protected $listeners = ['refresh' => 'refreshForm'];
|
||||||
|
|
||||||
public function form(Form $form): Form
|
public function form(Form $form): Form
|
||||||
{
|
{
|
||||||
|
@ -255,7 +255,8 @@ class CreateNode extends CreateRecord
|
|||||||
->suffix('MiB')
|
->suffix('MiB')
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->numeric()
|
->numeric()
|
||||||
->minValue(0),
|
->minValue(0)
|
||||||
|
->default(0),
|
||||||
Forms\Components\TextInput::make('memory_overallocate')
|
Forms\Components\TextInput::make('memory_overallocate')
|
||||||
->dehydratedWhenHidden()
|
->dehydratedWhenHidden()
|
||||||
->label('Overallocate')->inlineLabel()
|
->label('Overallocate')->inlineLabel()
|
||||||
@ -266,6 +267,7 @@ class CreateNode extends CreateRecord
|
|||||||
->numeric()
|
->numeric()
|
||||||
->minValue(-1)
|
->minValue(-1)
|
||||||
->maxValue(100)
|
->maxValue(100)
|
||||||
|
->default(0)
|
||||||
->suffix('%'),
|
->suffix('%'),
|
||||||
]),
|
]),
|
||||||
Forms\Components\Grid::make()
|
Forms\Components\Grid::make()
|
||||||
@ -294,7 +296,8 @@ class CreateNode extends CreateRecord
|
|||||||
->suffix('MiB')
|
->suffix('MiB')
|
||||||
->columnSpan(2)
|
->columnSpan(2)
|
||||||
->numeric()
|
->numeric()
|
||||||
->minValue(0),
|
->minValue(0)
|
||||||
|
->default(0),
|
||||||
Forms\Components\TextInput::make('disk_overallocate')
|
Forms\Components\TextInput::make('disk_overallocate')
|
||||||
->dehydratedWhenHidden()
|
->dehydratedWhenHidden()
|
||||||
->hidden(fn (Forms\Get $get) => $get('unlimited_disk'))
|
->hidden(fn (Forms\Get $get) => $get('unlimited_disk'))
|
||||||
@ -305,6 +308,7 @@ class CreateNode extends CreateRecord
|
|||||||
->numeric()
|
->numeric()
|
||||||
->minValue(-1)
|
->minValue(-1)
|
||||||
->maxValue(100)
|
->maxValue(100)
|
||||||
|
->default(0)
|
||||||
->suffix('%'),
|
->suffix('%'),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user