diff --git a/src/js/_enqueues/admin/xfn.js b/src/js/_enqueues/admin/xfn.js
index 61605a329b..8fe0241864 100644
a
|
b
|
jQuery( document ).ready( function( $ ) { |
27 | 27 | var strings = window.privacyToolsL10n || {}; |
28 | 28 | |
29 | 29 | function setActionState( $action, state ) { |
30 | | $action.children().hide(); |
31 | | $action.children( '.' + state ).show(); |
| 30 | $action.children().addClass( 'hidden' ); |
| 31 | $action.children( '.' + state ).removeClass( 'hidden' ); |
32 | 32 | } |
33 | 33 | |
34 | 34 | function clearResultsAfterRow( $requestRow ) { |
diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php
index 82d792fb3c..395439b92f 100644
a
|
b
|
class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { |
1528 | 1528 | '">'; |
1529 | 1529 | |
1530 | 1530 | $download_data_markup .= '<span class="export-personal-data-idle"><button type="button" class="button-link export-personal-data-handle">' . __( 'Download Personal Data' ) . '</button></span>' . |
1531 | | '<span style="display:none" class="export-personal-data-processing" >' . __( 'Downloading Data...' ) . '</span>' . |
1532 | | '<span style="display:none" class="export-personal-data-success"><button type="button" class="button-link export-personal-data-handle">' . __( 'Download Personal Data Again' ) . '</button></span>' . |
1533 | | '<span style="display:none" class="export-personal-data-failed">' . __( 'Download has failed.' ) . ' <button type="button" class="button-link">' . __( 'Retry' ) . '</button></span>'; |
| 1531 | '<span class="hidden export-personal-data-processing" >' . __( 'Downloading Data...' ) . '</span>' . |
| 1532 | '<span class="hidden export-personal-data-success"><button type="button" class="button-link export-personal-data-handle">' . __( 'Download Personal Data Again' ) . '</button></span>' . |
| 1533 | '<span class="hidden export-personal-data-failed">' . __( 'Download has failed.' ) . ' <button type="button" class="button-link">' . __( 'Retry' ) . '</button></span>'; |
1534 | 1534 | |
1535 | 1535 | $download_data_markup .= '</div>'; |
1536 | 1536 | |
… |
… |
class WP_Privacy_Data_Export_Requests_Table extends WP_Privacy_Requests_Table { |
1571 | 1571 | |
1572 | 1572 | ?> |
1573 | 1573 | <span class="export-personal-data-idle"><button type="button" class="button export-personal-data-handle"><?php _e( 'Send Export Link' ); ?></button></span> |
1574 | | <span style="display:none" class="export-personal-data-processing button updating-message" ><?php _e( 'Sending Email...' ); ?></span> |
1575 | | <span style="display:none" class="export-personal-data-success success-message" ><?php _e( 'Email sent.' ); ?></span> |
1576 | | <span style="display:none" class="export-personal-data-failed"><?php _e( 'Email could not be sent.' ); ?> <button type="button" class="button export-personal-data-handle"><?php _e( 'Retry' ); ?></button></span> |
| 1574 | <span class="hidden export-personal-data-processing button updating-message" ><?php _e( 'Sending Email...' ); ?></span> |
| 1575 | <span class="hidden export-personal-data-success success-message" ><?php _e( 'Email sent.' ); ?></span> |
| 1576 | <span class="hidden export-personal-data-failed"><?php _e( 'Email could not be sent.' ); ?> <button type="button" class="button export-personal-data-handle"><?php _e( 'Retry' ); ?></button></span> |
1577 | 1577 | <?php |
1578 | 1578 | |
1579 | 1579 | echo '</div>'; |
… |
… |
class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { |
1650 | 1650 | '">'; |
1651 | 1651 | |
1652 | 1652 | $remove_data_markup .= '<span class="remove-personal-data-idle"><button type="button" class="button-link remove-personal-data-handle">' . __( 'Force Erase Personal Data' ) . '</button></span>' . |
1653 | | '<span style="display:none" class="remove-personal-data-processing" >' . __( 'Erasing Data...' ) . '</span>' . |
1654 | | '<span style="display:none" class="remove-personal-data-failed">' . __( 'Force Erase has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>'; |
| 1653 | '<span class="hidden remove-personal-data-processing" >' . __( 'Erasing Data...' ) . '</span>' . |
| 1654 | '<span class="hidden remove-personal-data-failed">' . __( 'Force Erase has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>'; |
1655 | 1655 | |
1656 | 1656 | $remove_data_markup .= '</div>'; |
1657 | 1657 | |
… |
… |
class WP_Privacy_Data_Removal_Requests_Table extends WP_Privacy_Requests_Table { |
1693 | 1693 | |
1694 | 1694 | ?> |
1695 | 1695 | <span class="remove-personal-data-idle"><button type="button" class="button remove-personal-data-handle"><?php _e( 'Erase Personal Data' ); ?></button></span> |
1696 | | <span style="display:none" class="remove-personal-data-processing button updating-message" ><?php _e( 'Erasing Data...' ); ?></span> |
1697 | | <span style="display:none" class="remove-personal-data-failed"><?php _e( 'Erasing Data has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span> |
| 1696 | <span class="hidden remove-personal-data-processing button updating-message" ><?php _e( 'Erasing Data...' ); ?></span> |
| 1697 | <span class="hidden remove-personal-data-failed"><?php _e( 'Erasing Data has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span> |
1698 | 1698 | <?php |
1699 | 1699 | |
1700 | 1700 | echo '</div>'; |