mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Switch account screen on disconnect
This commit is contained in:
parent
145bd8c791
commit
8aa8b8de72
1 changed files with 6 additions and 0 deletions
|
@ -247,6 +247,12 @@ function ppcp_onboarding_productionCallback(...args) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (sandboxSwitchElement.checked) {
|
||||||
|
sandboxSwitchElement.checked = false;
|
||||||
|
} else {
|
||||||
|
sandboxSwitchElement.checked = true;
|
||||||
|
}
|
||||||
|
|
||||||
isDisconnecting = true;
|
isDisconnecting = true;
|
||||||
|
|
||||||
document.querySelector('.woocommerce-save-button').click();
|
document.querySelector('.woocommerce-save-button').click();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue