diff --git a/frontend/src/components/gallery/layouts/CarouselGalleryLayout.tsx b/frontend/src/components/gallery/layouts/CarouselGalleryLayout.tsx index 6cea392c..f20d040e 100644 --- a/frontend/src/components/gallery/layouts/CarouselGalleryLayout.tsx +++ b/frontend/src/components/gallery/layouts/CarouselGalleryLayout.tsx @@ -147,7 +147,7 @@ export const CarouselGalleryLayout: React.FC = ({ )} - {feedbackOptions?.allowLikes && ( + {feedbackEnabled && feedbackOptions?.allowLikes && ( - {/* Like Button */} - + {/* Like Button — #506: only when feedback master is on AND the + per-event "allow likes" sub-toggle is on. */} + {feedbackEnabled && allowLikes && ( + + )} {/* Selection Border */} {isSelected && ( @@ -502,6 +510,7 @@ export const GalleryPremiumLayout: React.FC = ({ useEnhancedProtection={useEnhancedProtection} useCanvasRendering={useCanvasRendering} feedbackEnabled={feedbackEnabled} + allowLikes={!!feedbackOptions?.allowLikes} index={photoIndex} /> ); diff --git a/frontend/src/components/gallery/layouts/MosaicGalleryLayout.tsx b/frontend/src/components/gallery/layouts/MosaicGalleryLayout.tsx index d4d6dfa4..2335afe2 100644 --- a/frontend/src/components/gallery/layouts/MosaicGalleryLayout.tsx +++ b/frontend/src/components/gallery/layouts/MosaicGalleryLayout.tsx @@ -105,7 +105,7 @@ const MosaicPhoto: React.FC = ({ )} - {feedbackOptions?.allowLikes && ( + {feedbackEnabled && feedbackOptions?.allowLikes && ( )} - {feedbackOptions?.allowLikes && ( + {feedbackEnabled && feedbackOptions?.allowLikes && (