fix(web): drop redundant missing chip on episode rows
The want button already only shows for state=="missing", so the chip repeated the same signal. Other non-available states keep it. Also fixes a pre-existing doc-markdown lint failure blocking CI.
This commit is contained in:
+5
-1
@@ -4958,7 +4958,11 @@ function seriesMain(tvDeck: TvReleasesView, views: HideableView[]): SeriesView {
|
||||
|
||||
const chips = document.createElement("span");
|
||||
chips.className = "row-chips ep-chips";
|
||||
chips.append(mediaStateChip(episode.state, episode.wanted));
|
||||
// the want button below only renders for this exact state, so the chip
|
||||
// would just repeat it
|
||||
if (episode.state !== "missing") {
|
||||
chips.append(mediaStateChip(episode.state, episode.wanted));
|
||||
}
|
||||
// §9.8: nothing here if the episode is part of a season pack grab — that
|
||||
// download is `target_kind: "season"` and shows on the season row instead.
|
||||
const download = downloadChip("episode", episode.id);
|
||||
|
||||
Reference in New Issue
Block a user