WIP: Switch between FS storage and S3 per static asset #104417

Draft
Anna Sirota wants to merge 4 commits from alternative-storage into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit ec2d89a8db - Show all commits

View File

@ -1864,16 +1864,26 @@
return; return;
} }
// TODO: decouple js collapse from Bootstrap bundle
triggerArray.forEach(elem => { triggerArray.forEach(elem => {
if (isOpen) { if (isOpen) {
const characterCount = elem.textContent.length;
elem.classList.remove(CLASS_NAME_COLLAPSED); elem.classList.remove(CLASS_NAME_COLLAPSED);
// Check if btn text is 'Show' or 'Hide'
if (characterCount == 4) {
elem.textContent = 'Hide'; elem.textContent = 'Hide';
}
} else { } else {
const characterCount = elem.textContent.length;
elem.classList.add(CLASS_NAME_COLLAPSED); elem.classList.add(CLASS_NAME_COLLAPSED);
if (characterCount == 4) {
elem.textContent = 'Show'; elem.textContent = 'Show';
} }
}
elem.setAttribute('aria-expanded', isOpen); elem.setAttribute('aria-expanded', isOpen);
}); });