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 aa5d99769..2c647bd76 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 @@ -51,13 +51,20 @@ export class AnnotationDetailsComponent implements OnChanges { getChangesTooltip(): string | undefined { const changes = changesProperties.filter(key => this.annotation.item[key]); - if (!changes.length || !this.annotation.item.engines?.includes(LogEntryEngines.MANUAL)) { + if (!changes.length && !this.annotation.item.engines?.includes(LogEntryEngines.MANUAL)) { return; } + const details = []; + if (this.annotation.item.engines?.includes(LogEntryEngines.MANUAL)) { + details.push(this._translateService.instant(_('annotation-changes.added-locally'))); + } + + if (changes.length) { + details.push(...changes.map(change => this._translateService.instant(annotationChangesTranslations[change]))); + } + const header = this._translateService.instant(_('annotation-changes.header')); - const details = [this._translateService.instant(_('annotation-changes.added-locally'))]; - details.push(...changes.map(change => this._translateService.instant(annotationChangesTranslations[change]))); return [header, ...details.map(change => `• ${change}`)].join('\n'); }