mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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 */
|
||||
where
|
||||
(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 */
|
||||
order by
|
||||
coalesce(s.order, m.order) desc,
|
||||
|
@ -60,7 +60,6 @@ export const WatchlistList = () => {
|
||||
thumbnail={episode?.thumbnail ?? x.thumbnail}
|
||||
href={episode?.href}
|
||||
watchedPercent={x.watchStatus?.watchedPercent || null}
|
||||
watchedStatus={x.watchStatus?.status || null}
|
||||
// TODO: support this on mobile too
|
||||
// @ts-expect-error This is a web only property
|
||||
{...css({ gridColumnEnd: "span 2" })}
|
||||
@ -74,6 +73,9 @@ export const WatchlistList = () => {
|
||||
poster={x.poster}
|
||||
watchStatus={x.watchStatus?.status || null}
|
||||
watchPercent={x.watchStatus?.watchedPercent || null}
|
||||
unseenEpisodesCount={
|
||||
x.kind === WatchlistKind.Show ? x.watchStatus?.unseenEpisodesCount : null
|
||||
}
|
||||
type={x.kind === WatchlistKind.Movie ? "movie" : "show"}
|
||||
/>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user