Update onboarding options UI

This commit is contained in:
Alex P 2022-02-22 09:04:25 +02:00
parent a6d7bb1069
commit f6446f5ced
6 changed files with 169 additions and 13 deletions

View file

@ -144,6 +144,15 @@ function ppcp_onboarding_productionCallback(...args) {
document.querySelectorAll(ppcpButtonSelectors.join()).forEach(
element => element.style.display = !isExpress ? '' : 'none'
);
const screemImg = document.querySelector('#ppcp-onboarding-cards-screen-img');
if (screemImg) {
const currentRb = Array.from(document.querySelectorAll('#ppcp-onboarding-dcc-options input[type="radio"]'))
.filter(rb => rb.checked)[0] ?? null;
const imgUrl = currentRb.getAttribute('data-screen-url');
screemImg.src = imgUrl;
}
};
const updateManualInputControls = (shown, isSandbox, isAnyEnvOnboarded) => {