changelog fix

This commit is contained in:
Timo Bejan 2021-10-14 09:43:02 +03:00
parent 1a1a62d48e
commit 2412ad9c82
2 changed files with 3 additions and 4 deletions

View File

@ -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 =

View File

@ -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',