add watched badge to collection details

This commit is contained in:
Marius Butz 2026-05-07 15:19:38 +02:00
parent 52b2d232de
commit fa99151183

View file

@ -332,6 +332,7 @@ private fun RowsContent(
onPosterClick: (MetaPreview) -> Unit, onPosterClick: (MetaPreview) -> Unit,
) { ) {
val sections = FolderDetailRepository.getCatalogSectionsForRows() val sections = FolderDetailRepository.getCatalogSectionsForRows()
val watchedUiState by WatchedRepository.uiState.collectAsStateWithLifecycle()
if (uiState.isLoading && sections.isEmpty()) { if (uiState.isLoading && sections.isEmpty()) {
LoadingIndicator() LoadingIndicator()
@ -358,6 +359,7 @@ private fun RowsContent(
HomeCatalogRowSection( HomeCatalogRowSection(
section = section, section = section,
entries = section.items.take(18), entries = section.items.take(18),
watchedKeys = watchedUiState.watchedKeys,
onViewAllClick = if (section.canOpenCatalog(18)) { onViewAllClick = if (section.canOpenCatalog(18)) {
{ onCatalogClick(section) } { onCatalogClick(section) }
} else { } else {