Ticket #44264: 44264.8.diff
File 44264.8.diff, 3.1 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/admin/privacy-tools.js
60 60 $action = $this.parents( '.export-personal-data' ), 61 61 $requestRow = $this.parents( 'tr' ), 62 62 $progress = $requestRow.find( '.export-progress' ), 63 $rowActions = $this.parents( '.row-actions' ), 63 64 requestID = $action.data( 'request-id' ), 64 65 nonce = $action.data( 'nonce' ), 65 66 exportersCount = $action.data( 'exporters-count' ), … … 68 69 event.preventDefault(); 69 70 event.stopPropagation(); 70 71 72 $rowActions.addClass( 'processing' ); 73 71 74 $action.blur(); 72 75 clearResultsAfterRow( $requestRow ); 73 76 setExportProgress( 0 ); … … 78 81 setActionState( $action, 'export-personal-data-success' ); 79 82 80 83 appendResultsAfterRow( $requestRow, 'notice-success', summaryMessage, [] ); 81 $this.hide();82 84 83 85 if ( 'undefined' !== typeof zipUrl ) { 84 86 window.location = zipUrl; … … 85 87 } else if ( ! sendAsEmail ) { 86 88 onExportFailure( strings.noExportFile ); 87 89 } 90 91 setTimeout( function(){ $rowActions.removeClass( 'processing' ); }, 500 ); 88 92 } 89 93 90 94 function onExportFailure( errorMessage ) { … … 92 96 if ( errorMessage ) { 93 97 appendResultsAfterRow( $requestRow, 'notice-error', strings.exportError, [ errorMessage ] ); 94 98 } 99 100 setTimeout( function(){ $rowActions.removeClass( 'processing' ); }, 500 ); 95 101 } 96 102 97 103 function setExportProgress( exporterIndex ) { … … 151 157 $action = $this.parents( '.remove-personal-data' ), 152 158 $requestRow = $this.parents( 'tr' ), 153 159 $progress = $requestRow.find( '.erasure-progress' ), 160 $rowActions = $this.parents( '.row-actions' ), 154 161 requestID = $action.data( 'request-id' ), 155 162 nonce = $action.data( 'nonce' ), 156 163 erasersCount = $action.data( 'erasers-count' ), … … 158 165 hasRetained = false, 159 166 messages = []; 160 167 168 event.preventDefault(); 161 169 event.stopPropagation(); 162 170 171 $rowActions.addClass( 'processing' ); 172 163 173 $action.blur(); 164 174 clearResultsAfterRow( $requestRow ); 165 175 setErasureProgress( 0 ); … … 186 196 } 187 197 } 188 198 appendResultsAfterRow( $requestRow, classes, summaryMessage, messages ); 189 $this.hide(); 199 200 setTimeout( function(){ $rowActions.removeClass( 'processing' ); }, 500 ); 190 201 } 191 202 192 203 function onErasureFailure() { 193 204 setActionState( $action, 'remove-personal-data-failed' ); 194 205 appendResultsAfterRow( $requestRow, 'notice-error', strings.removalError, [] ); 206 207 setTimeout( function(){ $rowActions.removeClass( 'processing' ); }, 500 ); 195 208 } 196 209 197 210 function setErasureProgress( eraserIndex ) { -
src/wp-admin/css/forms.css
1206 1206 color: #72777c; 1207 1207 } 1208 1208 1209 .privacy_requests .row-actions.processing { 1210 position: static; 1211 } 1212 1209 1213 .privacy_requests tbody .has-request-results th { 1210 1214 box-shadow: none; 1211 1215 }