From 4d1163c34384efa59fe9b5401c5bd42d7f0435fc Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 12 Mar 2025 21:05:16 +0100 Subject: [PATCH] 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. --- src/components/TitleCard/index.tsx | 41 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/components/TitleCard/index.tsx b/src/components/TitleCard/index.tsx index 5bfb90e9e..037afbc85 100644 --- a/src/components/TitleCard/index.tsx +++ b/src/components/TitleCard/index.tsx @@ -373,11 +373,10 @@ const TitleCard = ({ : intl.formatMessage(globalMessages.tvshow)} - {showDetail && - currentStatus !== MediaStatus.BLACKLISTED && - user?.userType !== UserType.PLEX && ( -
- {toggleWatchlist ? ( + {showDetail && currentStatus !== MediaStatus.BLACKLISTED && ( +
+ {user?.userType !== UserType.PLEX && + (toggleWatchlist ? ( + ))} + {showHideButton && + currentStatus !== MediaStatus.PROCESSING && + currentStatus !== MediaStatus.AVAILABLE && + currentStatus !== MediaStatus.PARTIALLY_AVAILABLE && + currentStatus !== MediaStatus.PENDING && ( + )} - {showHideButton && - currentStatus !== MediaStatus.PROCESSING && - currentStatus !== MediaStatus.AVAILABLE && - currentStatus !== MediaStatus.PARTIALLY_AVAILABLE && - currentStatus !== MediaStatus.PENDING && ( - - )} -
- )} +
+ )} {showDetail && showHideButton && currentStatus == MediaStatus.BLACKLISTED && (