formatting & semantics
This commit is contained in:
parent
b9958389b8
commit
fe57dc73a0
@ -123,6 +123,7 @@ function nextStage() {
|
|||||||
if (stages.length > 0) {
|
if (stages.length > 0) {
|
||||||
currentStage = stages.shift();
|
currentStage = stages.shift();
|
||||||
} else {
|
} else {
|
||||||
|
console.log("no more stages - disconnecting observer");
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -400,16 +401,18 @@ const enterTextPersonalData = {
|
|||||||
const continueToPayout = {
|
const continueToPayout = {
|
||||||
name: "continueToPayout",
|
name: "continueToPayout",
|
||||||
expects: "mutation",
|
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()),
|
execute: () => document.activeElement.dispatchEvent(_clickEv()),
|
||||||
}
|
}
|
||||||
|
|
||||||
const enterPaymentDetails = {
|
const enterPaymentDetails = {
|
||||||
name: "enterPaymentDetails",
|
name: "enterPaymentDetails",
|
||||||
match: node => node.querySelector(".entschaedigung") &&
|
match: node => node.querySelector(".entschaedigung"),
|
||||||
hasConfiguredBankDetails,
|
|
||||||
execute: node => {
|
execute: node => {
|
||||||
|
if (!hasConfiguredBankDetails) return true;
|
||||||
const xfrRadio = node.querySelector('#ueberweisung');
|
const xfrRadio = node.querySelector('#ueberweisung');
|
||||||
xfrRadio.dispatchEvent(new Event('change'));
|
xfrRadio.dispatchEvent(new Event('change'));
|
||||||
settings.get(bankDetailConfigKeys).then(results => {
|
settings.get(bankDetailConfigKeys).then(results => {
|
||||||
|
Loading…
Reference in New Issue
Block a user