Skip to content
Permalink
Browse files

Privacy: Show a success message for personal data erasure.

Props garrett-eclipse, allendav, birgire, JoshuaWold, karmatosed, pputzer.
Fixes #44135.

git-svn-id: https://develop.svn.wordpress.org/trunk@46264 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Sep 23, 2019
1 parent 027710e commit 7ae0a5985f6bd668e9f1f208bf5718258d2ba553
@@ -151,7 +151,7 @@ jQuery( document ).ready( function( $ ) {
var summaryMessage = strings.noDataFound;
var classes = 'notice-success';

setActionState( $action, 'remove-personal-data-idle' );
setActionState( $action, 'remove-personal-data-success' );

if ( false === hasRemoved ) {
if ( false === hasRetained ) {
@@ -1156,6 +1156,10 @@ table.form-table td .updated p {
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.privacy_requests .row-actions {
color: #72777c;
}

.privacy_requests tbody .has-request-results th {
box-shadow: none;
}
@@ -63,7 +63,8 @@ public function column_email( $item ) {
$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>' .
'<span class="remove-personal-data-processing hidden">' . __( 'Erasing Data...' ) . '</span>' .
'<span class="remove-personal-data-failed hidden">' . __( 'Force Erase has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>';
'<span class="remove-personal-data-success hidden">' . __( 'Erasure completed.' ) . '</span>' .
'<span class="remove-personal-data-failed hidden">' . __( 'Force Erasure has failed.' ) . ' <button type="button" class="button-link remove-personal-data-handle">' . __( 'Retry' ) . '</button></span>';
$remove_data_markup .= '</div>';
@@ -106,7 +107,8 @@ public function column_next_steps( $item ) {
?>
<span class="remove-personal-data-idle"><button type="button" class="button remove-personal-data-handle"><?php _e( 'Erase Personal Data' ); ?></button></span>
<span class="remove-personal-data-processing button updating-message hidden"><?php _e( 'Erasing Data...' ); ?></span>
<span class="remove-personal-data-failed hidden"><?php _e( 'Erasing Data has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
<span class="remove-personal-data-success success-message hidden" ><?php _e( 'Erasure completed.' ); ?></span>
<span class="remove-personal-data-failed hidden"><?php _e( 'Data Erasure has failed.' ); ?> <button type="button" class="button remove-personal-data-handle"><?php _e( 'Retry' ); ?></button></span>
<?php
echo '</div>';

0 comments on commit 7ae0a59

Please sign in to comment.
You can’t perform that action at this time.