Supertype after recategorization

This commit is contained in:
Adina Țeudan 2022-02-17 20:17:45 +02:00
parent 8b1d63a675
commit 75565d4e6f

View File

@ -426,8 +426,17 @@ export class AnnotationWrapper {
case ManualRedactionType.RECATEGORIZE:
switch (lastManualChange.annotationStatus) {
case LogEntryStatus.APPROVED:
case LogEntryStatus.DECLINED:
return redactionLogEntry.redacted ? 'redaction' : 'hint';
case LogEntryStatus.DECLINED: {
if (redactionLogEntry.recommendation) {
return 'recommendation';
} else if (redactionLogEntry.redacted) {
return 'redaction';
} else if (redactionLogEntry.hint) {
return 'hint';
} else {
return 'skipped';
}
}
case LogEntryStatus.REQUESTED:
return 'suggestion-recategorize-image';
}