Privacy: Ensure that sending email, and remove data follow the same user experience.
Both personal data request processes should follow the same convention. Fixes: #43974. Props: garrett-eclipse, kjellr, Kerfred, birgire, marybaum, SergeyBiryukov. git-svn-id: https://develop.svn.wordpress.org/trunk@46412 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
de0efbb825
commit
ed1a53588f
@ -71,7 +71,13 @@ jQuery( document ).ready( function( $ ) {
|
|||||||
clearResultsAfterRow( $requestRow );
|
clearResultsAfterRow( $requestRow );
|
||||||
|
|
||||||
function onExportDoneSuccess( zipUrl ) {
|
function onExportDoneSuccess( zipUrl ) {
|
||||||
|
var summaryMessage = strings.emailSent;
|
||||||
|
|
||||||
setActionState( $action, 'export-personal-data-success' );
|
setActionState( $action, 'export-personal-data-success' );
|
||||||
|
|
||||||
|
appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] );
|
||||||
|
$this.hide();
|
||||||
|
|
||||||
if ( 'undefined' !== typeof zipUrl ) {
|
if ( 'undefined' !== typeof zipUrl ) {
|
||||||
window.location = zipUrl;
|
window.location = zipUrl;
|
||||||
} else if ( ! sendAsEmail ) {
|
} else if ( ! sendAsEmail ) {
|
||||||
@ -168,7 +174,8 @@ jQuery( document ).ready( function( $ ) {
|
|||||||
classes = 'notice-warning';
|
classes = 'notice-warning';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, messages );
|
appendResultsAfterRow( $requestRow, classes, summaryMessage, messages );
|
||||||
|
$this.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
function onErasureFailure() {
|
function onErasureFailure() {
|
||||||
|
@ -1801,6 +1801,7 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
'noneRemoved' => __( 'Personal data was found for this user but was not erased.' ),
|
'noneRemoved' => __( 'Personal data was found for this user but was not erased.' ),
|
||||||
'someNotRemoved' => __( 'Personal data was found for this user but some of the personal data found was not erased.' ),
|
'someNotRemoved' => __( 'Personal data was found for this user but some of the personal data found was not erased.' ),
|
||||||
'removalError' => __( 'An error occurred while attempting to find and erase personal data.' ),
|
'removalError' => __( 'An error occurred while attempting to find and erase personal data.' ),
|
||||||
|
'emailSent' => __( 'The personal data export link for this user was sent.' ),
|
||||||
'noExportFile' => __( 'No personal data export file was generated.' ),
|
'noExportFile' => __( 'No personal data export file was generated.' ),
|
||||||
'exportError' => __( 'An error occurred while attempting to export personal data.' ),
|
'exportError' => __( 'An error occurred while attempting to export personal data.' ),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user