RED-5460 - filtered 'changeLogRemoved' redactions in preview mode
This commit is contained in:
parent
a8d016c6d5
commit
2a8e048a53
@ -15,6 +15,7 @@ import { MatDialogRef, MatDialogState } from '@angular/material/dialog';
|
|||||||
import scrollIntoView from 'scroll-into-view-if-needed';
|
import scrollIntoView from 'scroll-into-view-if-needed';
|
||||||
import {
|
import {
|
||||||
AutoUnsubscribe,
|
AutoUnsubscribe,
|
||||||
|
bool,
|
||||||
CircleButtonTypes,
|
CircleButtonTypes,
|
||||||
Debounce,
|
Debounce,
|
||||||
FilterService,
|
FilterService,
|
||||||
@ -383,9 +384,12 @@ export class FileWorkloadComponent extends AutoUnsubscribe implements OnDestroy
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._viewModeService.isRedacted && !this._userPreferencesService.getShowSuggestionsInPreview()) {
|
if (this._viewModeService.isRedacted) {
|
||||||
|
annotations = annotations.filter(a => !bool(a.isChangeLogRemoved));
|
||||||
|
if (!this._userPreferencesService.getShowSuggestionsInPreview()) {
|
||||||
annotations = annotations.filter(a => !a.isSuggestion);
|
annotations = annotations.filter(a => !a.isSuggestion);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.displayedAnnotations = this._annotationProcessingService.filterAndGroupAnnotations(annotations, primary, secondary);
|
this.displayedAnnotations = this._annotationProcessingService.filterAndGroupAnnotations(annotations, primary, secondary);
|
||||||
const pagesThatDisplayAnnotations = [...this.displayedAnnotations.keys()];
|
const pagesThatDisplayAnnotations = [...this.displayedAnnotations.keys()];
|
||||||
|
|||||||
@ -239,7 +239,9 @@ export class FilePreviewScreenComponent
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ViewModes.REDACTED: {
|
case ViewModes.REDACTED: {
|
||||||
const nonRedactionEntries = annotations.filter(a => !bool(a.getCustomData('redaction')));
|
const nonRedactionEntries = annotations.filter(
|
||||||
|
a => !bool(a.getCustomData('redaction')) || bool(a.getCustomData('changeLogRemoved')),
|
||||||
|
);
|
||||||
if (this._readableRedactionsService.active) {
|
if (this._readableRedactionsService.active) {
|
||||||
this._setAnnotationsOpacity(redactions, true);
|
this._setAnnotationsOpacity(redactions, true);
|
||||||
this._setAnnotationsColor(redactions, 'annotationColor');
|
this._setAnnotationsColor(redactions, 'annotationColor');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user