diff --git a/src/Components/Artwork/Details.tsx b/src/Components/Artwork/Details.tsx index 57ed5247989..ea33ad98965 100644 --- a/src/Components/Artwork/Details.tsx +++ b/src/Components/Artwork/Details.tsx @@ -30,6 +30,7 @@ interface DetailsProps { showHighDemandIcon?: boolean showHoverDetails?: boolean showSaveButton?: boolean + enableSaveButtonForLists?: boolean renderSaveButton?: (artworkId: string) => React.ReactNode } @@ -222,6 +223,7 @@ export const Details: React.FC = ({ showHighDemandIcon = false, showHoverDetails = true, showSaveButton, + enableSaveButtonForLists, renderSaveButton, ...rest }) => { @@ -248,7 +250,7 @@ export const Details: React.FC = ({ return renderSaveButton(rest.artwork.internalID) } - if (isArtworksListEnabled) { + if (isArtworksListEnabled && enableSaveButtonForLists) { return ( = ({ showHoverDetails={showHoverDetails} disableRouterLinking={disableRouterLinking} to={to} + enableSaveButtonForLists renderSaveButton={renderSaveButton} /> diff --git a/src/Components/Artwork/Metadata.tsx b/src/Components/Artwork/Metadata.tsx index 15b9fed0a57..ffd7e6f821e 100644 --- a/src/Components/Artwork/Metadata.tsx +++ b/src/Components/Artwork/Metadata.tsx @@ -24,6 +24,7 @@ export interface MetadataProps showHoverDetails?: boolean showSaveButton?: boolean to?: string | null + enableSaveButtonForLists?: boolean renderSaveButton?: (artworkId: string) => React.ReactNode } @@ -39,6 +40,7 @@ export const Metadata: React.FC = ({ showHighDemandIcon = false, showHoverDetails, showSaveButton, + enableSaveButtonForLists, renderSaveButton, ...rest }) => { @@ -60,6 +62,7 @@ export const Metadata: React.FC = ({ showHoverDetails={showHoverDetails} showSaveButton={showSaveButton} contextModule={contextModule} + enableSaveButtonForLists={enableSaveButtonForLists} renderSaveButton={renderSaveButton} />