diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 051ee4025..9a3c83497 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -69,6 +69,7 @@ export class AnnotationWrapper implements IListable, Record { hasBeenForcedHint: boolean; hasBeenForcedRedaction: boolean; hasBeenRemovedByManualOverride: boolean; + excluded: boolean; get searchKey(): string { return this.id; @@ -316,6 +317,7 @@ export class AnnotationWrapper implements IListable, Record { 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, ); diff --git a/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts b/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts index 468f8e833..d3ee57b2f 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts @@ -99,6 +99,7 @@ export class FileDataService extends EntitiesService this._userPreferenceService.areDevFeaturesEnabled ? annotations : annotations.filter(a => !a.isFalsePositive), ), + map(annotations => annotations.filter(a => !a.excluded)), shareLast(), ); }