mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 15:34:44 +02:00
Update EditDatabaseHost.php
This commit is contained in:
parent
f4d39c1c68
commit
7926f97c8e
@ -73,8 +73,8 @@ class EditDatabaseHost extends EditRecord
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Actions\DeleteAction::make()
|
Actions\DeleteAction::make()
|
||||||
->label(fn (DatabaseHost $dbh) => $dbh->databases()->count() > 0 ? 'Database Host Has Databases' : 'Delete')
|
->label(fn (DatabaseHost $databaseHost) => $databaseHost->databases()->count() > 0 ? 'Database Host Has Databases' : 'Delete')
|
||||||
->disabled(fn (DatabaseHost $dbh) => $dbh->databases()->count() > 0),
|
->disabled(fn (DatabaseHost $databaseHost) => $databaseHost->databases()->count() > 0),
|
||||||
$this->getSaveFormAction()->formId('form'),
|
$this->getSaveFormAction()->formId('form'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user