RED-8638 - Adapt UI to new manualChanges types
This commit is contained in:
parent
791b584df9
commit
e0b9cfcb05
@ -19,6 +19,7 @@ const Engines = {
|
||||
NER: 'NER',
|
||||
RULE: 'RULE',
|
||||
IMPORTED: 'IMPORTED',
|
||||
MANUAL: 'MANUAL',
|
||||
} as const;
|
||||
|
||||
type EngineName = keyof typeof Engines;
|
||||
@ -92,6 +93,11 @@ export class AnnotationDetailsComponent implements OnChanges {
|
||||
description: _('annotation-engines.imported'),
|
||||
show: isBasedOn(annotation, Engines.IMPORTED),
|
||||
},
|
||||
{
|
||||
icon: 'red:redaction-changes',
|
||||
description: _('annotation-engines.manual'),
|
||||
show: isBasedOn(annotation, Engines.MANUAL),
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@ -360,6 +360,7 @@
|
||||
"annotation-engines": {
|
||||
"dictionary": "{isHint, select, true{Hint} other{Redaction}} basierend auf Wörterbuch",
|
||||
"imported": "Imported",
|
||||
"manual": "",
|
||||
"ner": "Redaktion basierend auf KI",
|
||||
"rule": "Schwärzung basierend auf Regel {rule}"
|
||||
},
|
||||
|
||||
@ -360,6 +360,7 @@
|
||||
"annotation-engines": {
|
||||
"dictionary": "Based on dictionary",
|
||||
"imported": "Imported",
|
||||
"manual": "Manual",
|
||||
"ner": "Based on AI",
|
||||
"rule": "Based on rule"
|
||||
},
|
||||
|
||||
@ -360,6 +360,7 @@
|
||||
"annotation-engines": {
|
||||
"dictionary": "{isHint, select, true{Hint} other{Redaction}} basierend auf Wörterbuch",
|
||||
"imported": "Annotation is imported",
|
||||
"manual": "",
|
||||
"ner": "Redaktion basierend auf KI",
|
||||
"rule": "Schwärzung basierend auf Regel {rule}"
|
||||
},
|
||||
|
||||
@ -360,6 +360,7 @@
|
||||
"annotation-engines": {
|
||||
"dictionary": "{isHint, select, true{Hint} other{Annotation}} based on dictionary",
|
||||
"imported": "Annotation is imported",
|
||||
"manual": "Manual",
|
||||
"ner": "Annotation based on AI",
|
||||
"rule": "Annotation based on rule {rule}"
|
||||
},
|
||||
|
||||
@ -5,6 +5,7 @@ export const LogEntryEngines = {
|
||||
NER: 'NER',
|
||||
RULE: 'RULE',
|
||||
IMPORTED: 'IMPORTED',
|
||||
MANUAL: 'MANUAL',
|
||||
} as const;
|
||||
|
||||
export type LogEntryEngine = ValuesOf<typeof LogEntryEngines>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user