mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Pass the WC payments tab URL to JS
This commit is contained in:
parent
d3accc0d8c
commit
66536f2a57
2 changed files with 4 additions and 3 deletions
|
@ -60,7 +60,7 @@ const Navigation = ( {
|
|||
</div>
|
||||
{ ! isFistStep && (
|
||||
<div className="ppcp-r-navigation--right">
|
||||
<a href="wp-admin/admin.php?page=wc-settings&tab=checkout"
|
||||
<a href={ global.ppcpSettings.wcPaymentsTabUrl }
|
||||
aria-label="Return to payments">{__('Save and exit', 'woocommerce-paypal-payments')}</a>
|
||||
{ ! isLastStep && (
|
||||
<Button
|
||||
|
|
|
@ -85,10 +85,11 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
'ppcp-admin-settings',
|
||||
'ppcpSettings',
|
||||
array(
|
||||
'assets' => array(
|
||||
'assets' => array(
|
||||
'imagesUrl' => $module_url . '/images/',
|
||||
),
|
||||
'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG,
|
||||
'wcPaymentsTabUrl' => admin_url( 'admin.php?page=wc-settings&tab=checkout' ),
|
||||
'debug' => defined( 'WP_DEBUG' ) && WP_DEBUG,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue