Merge branch 'RED-10440' into 'master'
RED-10440: map redacted image hints to redaction. See merge request redactmanager/red-ui!692
This commit is contained in:
commit
6219ceb0a2
@ -27,8 +27,8 @@ function resolveRedactionType(entry: IEntityLogEntry, hint = false) {
|
||||
|
||||
const redaction = hint ? SuperTypes.Hint : SuperTypes.Redaction;
|
||||
const manualRedaction = hint ? SuperTypes.ManualHint : SuperTypes.ManualRedaction;
|
||||
|
||||
if (!entry.engines.length) {
|
||||
const isRedactedImageHint = entry.state === EntryStates.APPLIED && entry.entryType === EntityTypes.IMAGE_HINT;
|
||||
if (!entry.engines.length && !isRedactedImageHint) {
|
||||
return entry.state === EntryStates.PENDING && entry.dictionaryEntry ? redaction : manualRedaction;
|
||||
}
|
||||
return redaction;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user