From 2412ad9c825b46b5ec671cf159487d8a8e29f830 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Thu, 14 Oct 2021 09:43:02 +0300 Subject: [PATCH] changelog fix --- apps/red-ui/src/app/models/file/file-data.model.ts | 2 +- .../app/modules/dossier/services/annotation-draw.service.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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',