Skip to content

Commit

Permalink
add searchable false to non existing table columns
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Feb 7, 2025
1 parent 83d6f8f commit ae4f72d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/MailResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('status')
->label(__('Status'))
->sortable()
->searchable(false)
->badge()
->color(fn (string $state): string => match ($state) {
__('Soft Bounced') => 'warning',
Expand All @@ -341,6 +342,7 @@ public static function table(Table $table): Table
Tables\Columns\IconColumn::make('attachments')
->label('')
->alignLeft()
->searchable(false)
->getStateUsing(fn (Mail $record) => $record->attachments->count() > 0)
->icon(fn (string $state): string => $state ? 'heroicon-o-paper-clip' : ''),
Tables\Columns\TextColumn::make('to')
Expand Down

0 comments on commit ae4f72d

Please sign in to comment.