formatting & semantics

This commit is contained in:
iw0 2024-04-10 23:29:00 +02:00
parent b9958389b8
commit fe57dc73a0

View File

@ -123,6 +123,7 @@ function nextStage() {
if (stages.length > 0) {
currentStage = stages.shift();
} else {
console.log("no more stages - disconnecting observer");
observer.disconnect();
}
}
@ -400,16 +401,18 @@ const enterTextPersonalData = {
const continueToPayout = {
name: "continueToPayout",
expects: "mutation",
match: () => Object.is(document.activeElement, $(".fahrgastrechte-editable__buttons button.fahrgastrechte-continue-button"))
,
match: () => Object.is(
document.activeElement,
$(".fahrgastrechte-editable__buttons button.fahrgastrechte-continue-button")
),
execute: () => document.activeElement.dispatchEvent(_clickEv()),
}
const enterPaymentDetails = {
name: "enterPaymentDetails",
match: node => node.querySelector(".entschaedigung") &&
hasConfiguredBankDetails,
match: node => node.querySelector(".entschaedigung"),
execute: node => {
if (!hasConfiguredBankDetails) return true;
const xfrRadio = node.querySelector('#ueberweisung');
xfrRadio.dispatchEvent(new Event('change'));
settings.get(bankDetailConfigKeys).then(results => {