Refactor the field name

This commit is contained in:
Narek Zakarian 2022-12-14 15:24:32 +04:00
parent 004f87adb4
commit 554ae57cb1
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ document.addEventListener(
const clearDbConfig = config.clearDb;
jQuery(document).on('click', clearDbConfig.button, function () {
const isConfirmed = confirm(clearDbConfig.ConfirmationMessage);
const isConfirmed = confirm(clearDbConfig.confirmationMessage);
if (!isConfirmed) {
return;
}

View file

@ -55,7 +55,7 @@ return array(
'nonce' => wp_create_nonce( $container->get( 'uninstall.clear-db-endpoint' ) ),
'button' => '.ppcp-clear_db_now',
'messageSelector' => '.clear-db-info-message',
'ConfirmationMessage' => __( 'Are you sure? the operation will remove all plugin data.', 'woocommerce-paypal-payments' ),
'confirmationMessage' => __( 'Are you sure? the operation will remove all plugin data.', 'woocommerce-paypal-payments' ),
'successMessage' => sprintf(
'<div class="updated clear-db-info-message"><p><strong>%1$s</strong></p></div>',
esc_html__( 'The plugin data is successfully cleared.', 'woocommerce-paypal-payments' )