mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 23:42:04 +00:00
add watched badge to collection details
This commit is contained in:
parent
52b2d232de
commit
fa99151183
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue