From 4ebdcd3ff43a51dc270808a03a4a95ab276d2974 Mon Sep 17 00:00:00 2001 From: mbrucedogs Date: Sun, 20 Jul 2025 13:51:31 -0500 Subject: [PATCH] Signed-off-by: mbrucedogs --- src/components/common/SongItem.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/common/SongItem.tsx b/src/components/common/SongItem.tsx index 757c640..8e3ceee 100644 --- a/src/components/common/SongItem.tsx +++ b/src/components/common/SongItem.tsx @@ -232,11 +232,11 @@ const SongItem: React.FC = ({ const shouldShowCount = showCount !== undefined ? showCount : context === 'queue'; // Default values for action buttons based on context if not explicitly provided - const shouldShowInfoButton = showInfoButton !== undefined ? showInfoButton : context !== 'queue'; - const shouldShowAddButton = showAddButton !== undefined ? showAddButton : context !== 'queue'; + const shouldShowInfoButton = showInfoButton !== undefined ? showInfoButton : ['search', 'history'].includes(context); + const shouldShowAddButton = showAddButton !== undefined ? showAddButton : ['search', 'history'].includes(context); const shouldShowRemoveButton = showRemoveButton !== undefined ? showRemoveButton : context === 'queue' && isAdmin; - const shouldShowDeleteButton = showDeleteButton !== undefined ? showDeleteButton : context === 'favorites'; - const shouldShowFavoriteButton = showFavoriteButton !== undefined ? showFavoriteButton : context !== 'favorites'; + const shouldShowDeleteButton = showDeleteButton !== undefined ? showDeleteButton : context === 'history' && isAdmin; + const shouldShowFavoriteButton = showFavoriteButton !== undefined ? showFavoriteButton : false; // Disabled for all contexts return (