Skip to content

Commit 8a648e4

Browse files
scott graysonscott grayson
authored andcommitted
show favorite column by default
1 parent e0c0c93 commit 8a648e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/LibraryItemResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,14 @@ public static function table(Table $table): Table
211211
})
212212
->toggleable(isToggledHiddenByDefault: true),
213213
Tables\Columns\IconColumn::make('is_favorite')
214-
->label('')
214+
->label('Favorite')
215215
->icon(fn (bool $state): string => $state ? 'heroicon-s-star' : 'heroicon-o-star')
216216
->color(fn (bool $state): string => $state ? 'warning' : 'gray')
217217
->action(function (LibraryItem $record): void {
218218
$record->toggleFavorite();
219219
})
220220
->tooltip(fn (bool $state): string => $state ? 'Remove from favorites' : 'Add to favorites')
221-
->toggleable(isToggledHiddenByDefault: true),
221+
->toggleable(),
222222
])
223223
->filters([
224224
Tables\Filters\SelectFilter::make('type')

0 commit comments

Comments
 (0)