Add splash screen backdrop to login page

This commit is contained in:
Bill Thornton
2025-04-15 12:38:50 -04:00
parent eb3c245a67
commit 3898793df9
6 changed files with 30 additions and 11 deletions
+4 -4
View File
@@ -213,19 +213,19 @@ function enabled() {
let rotationInterval;
let currentRotatingImages = [];
let currentRotationIndex = -1;
export function setBackdrops(items, imageOptions, enableImageRotation, isEnabled = false) {
export function setBackdrops(items, imageOptions, isEnabled = false) {
if (isEnabled || enabled()) {
const images = getImageUrls(items, imageOptions);
if (images.length) {
startRotation(images, enableImageRotation);
setBackdropImages(images);
} else {
clearBackdrop();
}
}
}
function startRotation(images, enableImageRotation) {
export function setBackdropImages(images) {
if (isEqual(images, currentRotatingImages)) {
return;
}
@@ -235,7 +235,7 @@ function startRotation(images, enableImageRotation) {
currentRotatingImages = images;
currentRotationIndex = -1;
if (images.length > 1 && enableImageRotation !== false && enableRotation()) {
if (images.length > 1 && enableRotation()) {
rotationInterval = setInterval(onRotationInterval, 24000);
}