pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

maybe add check beside active embed?

Pas 76124c92 9cac3c87

+15 -1
+15 -1
src/components/player/atoms/settings/SourceSelectingView.tsx
··· 31 31 const { t } = useTranslation(); 32 32 const unknownEmbedName = t("player.menus.sources.unknownOption"); 33 33 34 + const currentSourceId = usePlayerStore((s) => s.sourceId); 35 + const captionList = usePlayerStore((s) => s.captionList); 36 + 37 + const isActive = useMemo(() => { 38 + if (currentSourceId !== props.sourceId) return false; 39 + 40 + return captionList.some((caption) => caption.id.includes(props.embedId)); 41 + }, [currentSourceId, props.sourceId, props.embedId, captionList]); 42 + 34 43 const embedName = useMemo(() => { 35 44 if (!props.embedId) return unknownEmbedName; 36 45 const sourceMeta = getCachedMetadata().find((s) => s.id === props.embedId); ··· 45 54 ); 46 55 47 56 return ( 48 - <SelectableLink loading={loading} error={errored} onClick={run}> 57 + <SelectableLink 58 + loading={loading} 59 + error={errored} 60 + onClick={run} 61 + selected={isActive} 62 + > 49 63 <span className="flex flex-col"> 50 64 <span>{embedName}</span> 51 65 </span>