Merge pull request #335 from Boy132/add/mounts-helper-text

Add helper text to mounts on EditServer page
This commit is contained in:
Charles 2024-06-06 06:05:27 -04:00 committed by GitHub
commit dc3da2dc98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -576,6 +576,7 @@ class EditServer extends EditRecord
->options(fn (Server $server) => $server->node->mounts->mapWithKeys(fn ($mount) => [$mount->id => $mount->name]))
->descriptions(fn (Server $server) => $server->node->mounts->mapWithKeys(fn ($mount) => [$mount->id => "$mount->source -> $mount->target"]))
->label('Mounts')
->helperText(fn (Server $server) => $server->node->mounts->isNotEmpty() ? '' : 'No Mounts exist for this Node')
->columnSpanFull(),
]),
Tabs\Tab::make('Databases')