Enhance overlay image handling: support dynamic filenames, add delete and rename functionality, and improve seasonal image management
This commit is contained in:
@@ -3825,8 +3825,14 @@ const slidesInit = async () => {
|
||||
if (isActive) {
|
||||
if (section.OverlayText || section.OverlayImageUrl) {
|
||||
isSeasonOverride = true;
|
||||
if (section.OverlayText) activeOverlayText = section.OverlayText;
|
||||
if (section.OverlayImageUrl) activeOverlayImage = section.OverlayImageUrl;
|
||||
// If the season has an image, clear text, and vice versa.
|
||||
if (section.OverlayImageUrl) {
|
||||
activeOverlayImage = section.OverlayImageUrl;
|
||||
activeOverlayText = null;
|
||||
} else if (section.OverlayText) {
|
||||
activeOverlayText = section.OverlayText;
|
||||
activeOverlayImage = null;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user