Supertype after recategorization
This commit is contained in:
parent
8b1d63a675
commit
75565d4e6f
@ -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';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user