Woring UI for latest redactionLog

This commit is contained in:
Timo Bejan 2022-01-28 11:23:18 +02:00
parent 58c56b7f7b
commit d2dad66d64
3 changed files with 11 additions and 3 deletions

View File

@ -252,7 +252,7 @@ export class AnnotationWrapper {
annotationWrapper.image = redactionLogEntry.image; annotationWrapper.image = redactionLogEntry.image;
annotationWrapper.legalBasisValue = redactionLogEntry.legalBasis; annotationWrapper.legalBasisValue = redactionLogEntry.legalBasis;
annotationWrapper.comments = redactionLogEntry.comments || []; annotationWrapper.comments = redactionLogEntry.comments || [];
annotationWrapper.manual = redactionLogEntry.manualChanges.length > 0; annotationWrapper.manual = redactionLogEntry.manualChanges?.length > 0;
annotationWrapper.engines = redactionLogEntry.engines; annotationWrapper.engines = redactionLogEntry.engines;
annotationWrapper.section = redactionLogEntry.section; annotationWrapper.section = redactionLogEntry.section;
annotationWrapper.reference = redactionLogEntry.reference || []; annotationWrapper.reference = redactionLogEntry.reference || [];

View File

@ -119,6 +119,8 @@ export class FileDataModel {
reasonAnnotationIds[redactionLogEntry.reason].push(redactionLogEntryWrapper); reasonAnnotationIds[redactionLogEntry.reason].push(redactionLogEntryWrapper);
} }
} }
result.push(redactionLogEntryWrapper);
}); });
const reasonKeys = Object.keys(reasonAnnotationIds); const reasonKeys = Object.keys(reasonAnnotationIds);
@ -182,6 +184,12 @@ export class FileDataModel {
hidden: lastChange && lastChange.type === 'REMOVED', hidden: lastChange && lastChange.type === 'REMOVED',
}; };
} }
} else {
return {
changeLogType: null,
isChangeLogEntry: false,
hidden: false,
};
} }
// console.log(wrapper.changeLogType, wrapper.hidden, wrapper.isChangeLogEntry, wrapper.value, lastChange); // console.log(wrapper.changeLogType, wrapper.hidden, wrapper.isChangeLogEntry, wrapper.value, lastChange);
} }

View File

@ -1,7 +1,7 @@
{ {
"ADMIN_CONTACT_NAME": null, "ADMIN_CONTACT_NAME": null,
"ADMIN_CONTACT_URL": null, "ADMIN_CONTACT_URL": null,
"API_URL": "https://dev-04.iqser.cloud/redaction-gateway-v1", "API_URL": "https://dev-05.iqser.cloud/redaction-gateway-v1",
"APP_NAME": "RedactManager", "APP_NAME": "RedactManager",
"AUTO_READ_TIME": 3, "AUTO_READ_TIME": 3,
"BACKEND_APP_VERSION": "4.4.40", "BACKEND_APP_VERSION": "4.4.40",
@ -17,7 +17,7 @@
"MAX_RETRIES_ON_SERVER_ERROR": 3, "MAX_RETRIES_ON_SERVER_ERROR": 3,
"OAUTH_CLIENT_ID": "redaction", "OAUTH_CLIENT_ID": "redaction",
"OAUTH_IDP_HINT": null, "OAUTH_IDP_HINT": null,
"OAUTH_URL": "https://dev-04.iqser.cloud/auth/realms/redaction", "OAUTH_URL": "https://dev-05.iqser.cloud/auth/realms/redaction",
"RECENT_PERIOD_IN_HOURS": 24, "RECENT_PERIOD_IN_HOURS": 24,
"SELECTION_MODE": "structural" "SELECTION_MODE": "structural"
} }