mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-04 06:04:39 -04:00
Hide completed items from the watchlist
This commit is contained in:
parent
e2414f94f3
commit
1178e8fd6c
@ -103,7 +103,7 @@ public class WatchStatusRepository : IWatchStatusRepository
|
|||||||
/* includesJoin */
|
/* includesJoin */
|
||||||
where
|
where
|
||||||
(coalesce(s.watch_status, m.watch_status) = 'watching'::watch_status
|
(coalesce(s.watch_status, m.watch_status) = 'watching'::watch_status
|
||||||
or coalesce(s.watch_status, m.watch_status) = 'completed'::watch_status)
|
or coalesce(s.watch_status, m.watch_status) = 'planned'::watch_status)
|
||||||
/* where */
|
/* where */
|
||||||
order by
|
order by
|
||||||
coalesce(s.order, m.order) desc,
|
coalesce(s.order, m.order) desc,
|
||||||
|
@ -60,7 +60,6 @@ export const WatchlistList = () => {
|
|||||||
thumbnail={episode?.thumbnail ?? x.thumbnail}
|
thumbnail={episode?.thumbnail ?? x.thumbnail}
|
||||||
href={episode?.href}
|
href={episode?.href}
|
||||||
watchedPercent={x.watchStatus?.watchedPercent || null}
|
watchedPercent={x.watchStatus?.watchedPercent || null}
|
||||||
watchedStatus={x.watchStatus?.status || null}
|
|
||||||
// TODO: support this on mobile too
|
// TODO: support this on mobile too
|
||||||
// @ts-expect-error This is a web only property
|
// @ts-expect-error This is a web only property
|
||||||
{...css({ gridColumnEnd: "span 2" })}
|
{...css({ gridColumnEnd: "span 2" })}
|
||||||
@ -74,6 +73,9 @@ export const WatchlistList = () => {
|
|||||||
poster={x.poster}
|
poster={x.poster}
|
||||||
watchStatus={x.watchStatus?.status || null}
|
watchStatus={x.watchStatus?.status || null}
|
||||||
watchPercent={x.watchStatus?.watchedPercent || null}
|
watchPercent={x.watchStatus?.watchedPercent || null}
|
||||||
|
unseenEpisodesCount={
|
||||||
|
x.kind === WatchlistKind.Show ? x.watchStatus?.unseenEpisodesCount : null
|
||||||
|
}
|
||||||
type={x.kind === WatchlistKind.Movie ? "movie" : "show"}
|
type={x.kind === WatchlistKind.Movie ? "movie" : "show"}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user