diff --git a/apps/red-ui/src/app/models/file/file-data.model.ts b/apps/red-ui/src/app/models/file/file-data.model.ts index 0387b502b..b11200841 100644 --- a/apps/red-ui/src/app/models/file/file-data.model.ts +++ b/apps/red-ui/src/app/models/file/file-data.model.ts @@ -105,7 +105,7 @@ export class FileDataModel { } private _isChangeLogEntry(redactionLogEntry: RedactionLogEntry, wrapper: RedactionLogEntryWrapper) { - if (this.file.numberOfAnalyses > 0) { + if (this.file.numberOfAnalyses > 1) { redactionLogEntry.changes.sort((a, b) => moment(a.dateTime).valueOf() - moment(b.dateTime).valueOf()); const lastChange = diff --git a/apps/red-ui/src/app/modules/dossier/services/annotation-draw.service.ts b/apps/red-ui/src/app/modules/dossier/services/annotation-draw.service.ts index 11eef6acd..81e255a68 100644 --- a/apps/red-ui/src/app/modules/dossier/services/annotation-draw.service.ts +++ b/apps/red-ui/src/app/modules/dossier/services/annotation-draw.service.ts @@ -133,9 +133,8 @@ export class AnnotationDrawService { highlight.setCustomData('redacto-manager', 'true'); highlight.setCustomData('redaction', String(annotationWrapper.isRedacted)); highlight.setCustomData('skipped', String(annotationWrapper.isSkipped)); - // TODO once changelog is implemented - highlight.setCustomData('changeLog', String(annotationWrapper.isChangeLogEntry && false)); - highlight.setCustomData('changeLogRemoved', String(annotationWrapper.isChangeLogRemoved && false)); + highlight.setCustomData('changeLog', String(annotationWrapper.isChangeLogEntry)); + highlight.setCustomData('changeLogRemoved', String(annotationWrapper.isChangeLogRemoved)); highlight.setCustomData('redactionColor', String(this.getColor(activeViewer, 'redaction', 'redaction'))); highlight.setCustomData( 'annotationColor',