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',
|
NER: 'NER',
|
||||||
RULE: 'RULE',
|
RULE: 'RULE',
|
||||||
IMPORTED: 'IMPORTED',
|
IMPORTED: 'IMPORTED',
|
||||||
|
MANUAL: 'MANUAL',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
type EngineName = keyof typeof Engines;
|
type EngineName = keyof typeof Engines;
|
||||||
@ -92,6 +93,11 @@ export class AnnotationDetailsComponent implements OnChanges {
|
|||||||
description: _('annotation-engines.imported'),
|
description: _('annotation-engines.imported'),
|
||||||
show: isBasedOn(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": {
|
"annotation-engines": {
|
||||||
"dictionary": "{isHint, select, true{Hint} other{Redaction}} basierend auf Wörterbuch",
|
"dictionary": "{isHint, select, true{Hint} other{Redaction}} basierend auf Wörterbuch",
|
||||||
"imported": "Imported",
|
"imported": "Imported",
|
||||||
|
"manual": "",
|
||||||
"ner": "Redaktion basierend auf KI",
|
"ner": "Redaktion basierend auf KI",
|
||||||
"rule": "Schwärzung basierend auf Regel {rule}"
|
"rule": "Schwärzung basierend auf Regel {rule}"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -360,6 +360,7 @@
|
|||||||
"annotation-engines": {
|
"annotation-engines": {
|
||||||
"dictionary": "Based on dictionary",
|
"dictionary": "Based on dictionary",
|
||||||
"imported": "Imported",
|
"imported": "Imported",
|
||||||
|
"manual": "Manual",
|
||||||
"ner": "Based on AI",
|
"ner": "Based on AI",
|
||||||
"rule": "Based on rule"
|
"rule": "Based on rule"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -360,6 +360,7 @@
|
|||||||
"annotation-engines": {
|
"annotation-engines": {
|
||||||
"dictionary": "{isHint, select, true{Hint} other{Redaction}} basierend auf Wörterbuch",
|
"dictionary": "{isHint, select, true{Hint} other{Redaction}} basierend auf Wörterbuch",
|
||||||
"imported": "Annotation is imported",
|
"imported": "Annotation is imported",
|
||||||
|
"manual": "",
|
||||||
"ner": "Redaktion basierend auf KI",
|
"ner": "Redaktion basierend auf KI",
|
||||||
"rule": "Schwärzung basierend auf Regel {rule}"
|
"rule": "Schwärzung basierend auf Regel {rule}"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -360,6 +360,7 @@
|
|||||||
"annotation-engines": {
|
"annotation-engines": {
|
||||||
"dictionary": "{isHint, select, true{Hint} other{Annotation}} based on dictionary",
|
"dictionary": "{isHint, select, true{Hint} other{Annotation}} based on dictionary",
|
||||||
"imported": "Annotation is imported",
|
"imported": "Annotation is imported",
|
||||||
|
"manual": "Manual",
|
||||||
"ner": "Annotation based on AI",
|
"ner": "Annotation based on AI",
|
||||||
"rule": "Annotation based on rule {rule}"
|
"rule": "Annotation based on rule {rule}"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -5,6 +5,7 @@ export const LogEntryEngines = {
|
|||||||
NER: 'NER',
|
NER: 'NER',
|
||||||
RULE: 'RULE',
|
RULE: 'RULE',
|
||||||
IMPORTED: 'IMPORTED',
|
IMPORTED: 'IMPORTED',
|
||||||
|
MANUAL: 'MANUAL',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type LogEntryEngine = ValuesOf<typeof LogEntryEngines>;
|
export type LogEntryEngine = ValuesOf<typeof LogEntryEngines>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user