RED-3557: Fixed identifying manual redaction super type

* Legal Basis Change
* Resize
This commit is contained in:
Adina Țeudan 2022-03-10 13:58:33 +02:00
parent e515dc62ae
commit a2eca4eff0

View File

@ -441,7 +441,7 @@ export class AnnotationWrapper {
switch (lastManualChange.annotationStatus) {
case LogEntryStatus.APPROVED:
case LogEntryStatus.DECLINED:
return 'redaction';
return redactionLogEntry.type === 'manual' ? 'manual-redaction' : 'redaction';
case LogEntryStatus.REQUESTED:
return 'suggestion-change-legal-basis';
}
@ -452,9 +452,10 @@ export class AnnotationWrapper {
case LogEntryStatus.DECLINED:
if (redactionLogEntry.recommendation) {
return 'recommendation';
} else {
return redactionLogEntry.redacted ? 'redaction' : 'hint';
} else if (redactionLogEntry.redacted) {
return redactionLogEntry.type === 'manual' ? 'manual-redaction' : 'redaction';
}
return 'hint';
case LogEntryStatus.REQUESTED:
return 'suggestion-resize';
}