RED-8119: show only annotations with excluded=false.
This commit is contained in:
parent
83fd9b8c00
commit
9ebb463af8
@ -69,6 +69,7 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
|
||||
hasBeenForcedHint: boolean;
|
||||
hasBeenForcedRedaction: boolean;
|
||||
hasBeenRemovedByManualOverride: boolean;
|
||||
excluded: boolean;
|
||||
|
||||
get searchKey(): string {
|
||||
return this.id;
|
||||
@ -316,6 +317,7 @@ export class AnnotationWrapper implements IListable, Record<string, unknown> {
|
||||
annotationWrapper.reference = redactionLogEntry.reference || [];
|
||||
annotationWrapper.rectangle = redactionLogEntry.rectangle;
|
||||
annotationWrapper.hintDictionary = redactionLogEntry.hintDictionary;
|
||||
annotationWrapper.excluded = redactionLogEntry.excluded;
|
||||
annotationWrapper.hasBeenResized = !!redactionLogEntry.manualChanges?.find(
|
||||
c => c.manualRedactionType === ManualRedactionTypes.RESIZE && c.annotationStatus === LogEntryStatuses.APPROVED,
|
||||
);
|
||||
|
||||
@ -99,6 +99,7 @@ export class FileDataService extends EntitiesService<AnnotationWrapper, Annotati
|
||||
map(annotations =>
|
||||
this._userPreferenceService.areDevFeaturesEnabled ? annotations : annotations.filter(a => !a.isFalsePositive),
|
||||
),
|
||||
map(annotations => annotations.filter(a => !a.excluded)),
|
||||
shareLast(),
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user