feat(web): show the vanished flag on seasons

This commit is contained in:
Miguel Palhas
2026-08-23 20:32:30 +01:00
parent 468f31f0b0
commit 4762f2612f
2 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -2338,7 +2338,17 @@ function seriesMain(board: HTMLElement, tvDeck: TvReleasesView, views: HideableV
});
});
line.append(disclose, name, track, seasonCountsChip(season), space, searchBtn, deckBtn);
line.append(disclose, name, track, seasonCountsChip(season));
// The season-level twin of the episode flag above: gone upstream while
// files under it remained.
if (season.vanished) {
line.append(
chip("vanished", (span) => {
span.dataset.flag = "vanished";
}),
);
}
line.append(space, searchBtn, deckBtn);
item.append(line);
const episodes = document.createElement("ul");
+2
View File
@@ -36,6 +36,8 @@ export interface ApiSeason {
id: number;
number: number;
tracked: boolean;
/** Gone upstream while a file under it remained — a conflict, not a state. */
vanished: boolean;
episodes: ApiEpisode[];
}