Skip to content

Commit 9678bd8

Browse files
feat:[Lar-129] change icone to resolver name
1 parent 11ac867 commit 9678bd8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/Filament/Resources/ThreadResource.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ public static function table(Table $table): Table
4242
->trueColor('warning')
4343
->falseIcon('heroicon-s-lock-open')
4444
->falseColor('success'),
45-
IconColumn::make('resolved_by')
46-
->label('Résolu')
47-
->getStateUsing(fn ($record) => $record->resolved_by == null ? 'heroicon-s-x-mark' : 'heroicon-s-check')
48-
->icon(fn ($state) => $state)
49-
->color(fn ($state) => $state === 'heroicon-s-x-mark' ? 'warning' : 'success')
50-
->sortable(),
45+
TextColumn::make('resolvedBy.name')
46+
->label('Résolu par'),
5147
TextColumn::make('created_at')
5248
->label('Date de publication')
5349
->dateTime(),

0 commit comments

Comments
 (0)