RED-8638 - Adapt UI to new manualChanges types

This commit is contained in:
Valentin Mihai 2024-03-12 20:42:30 +02:00
parent 791b584df9
commit e0b9cfcb05
6 changed files with 11 additions and 0 deletions

View File

@ -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),
},
];
}
}

View File

@ -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}"
},

View File

@ -360,6 +360,7 @@
"annotation-engines": {
"dictionary": "Based on dictionary",
"imported": "Imported",
"manual": "Manual",
"ner": "Based on AI",
"rule": "Based on rule"
},

View File

@ -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}"
},

View File

@ -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}"
},

View File

@ -5,6 +5,7 @@ export const LogEntryEngines = {
NER: 'NER',
RULE: 'RULE',
IMPORTED: 'IMPORTED',
MANUAL: 'MANUAL',
} as const;
export type LogEntryEngine = ValuesOf<typeof LogEntryEngines>;