feat: hide watchlist button in continue watching cards

This commit is contained in:
2026-04-21 00:47:21 +02:00
parent 24437ad8b7
commit 360010347b
2 changed files with 12 additions and 10 deletions

View File

@@ -24,6 +24,7 @@ type AnimeCardProps struct {
TitleJapanese string
Airing bool
WatchlistStatus string // empty if not in watchlist
DisableWatchlist bool // if true, don't render the watchlist button
}
templ AnimeCard(props AnimeCardProps) {
@@ -91,7 +92,7 @@ templ animeCardPoster(props AnimeCardProps) {
</svg>
</a>
}
if !props.CurrentNode {
if !props.CurrentNode && !props.DisableWatchlist {
@watchlist.CardButton(
props.ID,
props.Title,