diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-details/annotation-details.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotation-details/annotation-details.component.ts index 138876b27..1e3c5fd86 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-details/annotation-details.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-details/annotation-details.component.ts @@ -52,12 +52,12 @@ export class AnnotationDetailsComponent implements OnChanges { noSelection: boolean; getChangesTooltip(): string | undefined { - if (!this.annotation.item.engines?.includes(Engines.MANUAL)) { + const changes = changesProperties.filter(key => this.annotation.item[key]); + + if (!changes.length || !this.annotation.item.engines?.includes(Engines.MANUAL)) { return; } - const changes = changesProperties.filter(key => this.annotation.item[key]); - const header = this._translateService.instant(_('annotation-changes.header')); const details = changes.map(change => this._translateService.instant(annotationChangesTranslations[change])); return [header, ...details.map(change => `• ${change}`)].join('\n'); diff --git a/apps/red-ui/src/app/modules/file-preview/services/annotation-processing.service.ts b/apps/red-ui/src/app/modules/file-preview/services/annotation-processing.service.ts index e7fbb0d94..b8fbb3aae 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/annotation-processing.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/annotation-processing.service.ts @@ -51,7 +51,8 @@ export class AnnotationProcessingService { label: _('filter-menu.redaction-changes'), checked: false, topLevelFilter: true, - checker: (annotation: AnnotationWrapper) => annotation?.engines?.includes(Engines.MANUAL), + checker: (annotation: AnnotationWrapper) => + annotation?.hasRedactionChanges && annotation?.engines?.includes(Engines.MANUAL), }, { id: 'unseen-pages',