Enhance overlay image handling: support dynamic filenames, add delete and rename functionality, and improve seasonal image management

This commit is contained in:
CodeDevMLH
2026-03-09 15:25:49 +01:00
parent 22c873d686
commit 66f6f7b434
4 changed files with 372 additions and 12 deletions

View File

@@ -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;
}