Pull request #352: RED-3400: Supertype after recategorization

Merge in RED/ui from RED-3400 to master

* commit '75565d4e6f7a8dd4f39198a7610ab0db20dd78b1':
  Supertype after recategorization
This commit is contained in:
Adina Teudan 2022-02-17 19:27:38 +01:00 committed by Timo Bejan
commit 2a50e7b2b3

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';
}