Skip to content

Commit

Permalink
Merge pull request pelican-dev#335 from Boy132/add/mounts-helper-text
Browse files Browse the repository at this point in the history
Add helper text to mounts on EditServer page
  • Loading branch information
notAreYouScared authored Jun 6, 2024
2 parents 3010e3d + e0d7a09 commit dc3da2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Filament/Resources/ServerResource/Pages/EditServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ public function form(Form $form): Form
->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')
Expand Down

0 comments on commit dc3da2d

Please sign in to comment.