fix(blacklist): add back the blacklist button on TitleCard for Plex (#1463)

The PR #1398 introduced an issue where the blacklist button was not visible anymore on the
TitleCards for Plex. This PR fixes it.
This commit is contained in:
Gauthier
2025-03-12 21:05:16 +01:00
committed by GitHub
parent b085e12ff9
commit 4d1163c343

View File

@@ -373,11 +373,10 @@ const TitleCard = ({
: intl.formatMessage(globalMessages.tvshow)} : intl.formatMessage(globalMessages.tvshow)}
</div> </div>
</div> </div>
{showDetail && {showDetail && currentStatus !== MediaStatus.BLACKLISTED && (
currentStatus !== MediaStatus.BLACKLISTED &&
user?.userType !== UserType.PLEX && (
<div className="flex flex-col gap-1"> <div className="flex flex-col gap-1">
{toggleWatchlist ? ( {user?.userType !== UserType.PLEX &&
(toggleWatchlist ? (
<Button <Button
buttonType={'ghost'} buttonType={'ghost'}
className="z-40" className="z-40"
@@ -394,7 +393,7 @@ const TitleCard = ({
> >
<MinusCircleIcon className={'h-3'} /> <MinusCircleIcon className={'h-3'} />
</Button> </Button>
)} ))}
{showHideButton && {showHideButton &&
currentStatus !== MediaStatus.PROCESSING && currentStatus !== MediaStatus.PROCESSING &&
currentStatus !== MediaStatus.AVAILABLE && currentStatus !== MediaStatus.AVAILABLE &&