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