RED-8638 - removed “Redaction/Hint added” tooltip text

This commit is contained in:
Valentin Mihai 2024-04-11 19:12:45 +03:00
parent ae27842ceb
commit 42fe183170
8 changed files with 19 additions and 10 deletions

View File

@ -63,7 +63,6 @@ export class AnnotationWrapper implements IListable {
hasBeenForcedHint: boolean;
hasBeenForcedRedaction: boolean;
hasBeenRemovedByManualOverride: boolean;
hasBeenAdded: boolean;
isRemoved = false;
isRemovedLocally = false;
hiddenInWorkload = false;
@ -270,7 +269,6 @@ export class AnnotationWrapper implements IListable {
annotationWrapper.hasBeenRemovedByManualOverride = !!logEntry.manualChanges?.find(
c => c.manualRedactionType === ManualRedactionTypes.REMOVE,
);
annotationWrapper.hasBeenAdded = !!logEntry.manualChanges?.find(c => c.manualRedactionType === ManualRedactionTypes.ADD);
const content = this.#createContent(annotationWrapper, logEntry, isDocumine);
annotationWrapper.shortContent = this.#getShortContent(annotationWrapper, legalBasisList) || content;

View File

@ -14,7 +14,7 @@ interface Engine {
readonly translateParams?: Record<string, any>;
}
export const Engines = {
const Engines = {
DICTIONARY: 'DICTIONARY',
NER: 'NER',
RULE: 'RULE',
@ -29,7 +29,6 @@ function isBasedOn(annotation: AnnotationWrapper, engineName: EngineName) {
}
const changesProperties: KeysOf<AnnotationWrapper>[] = [
'hasBeenAdded',
'hasBeenResized',
'hasBeenRecategorized',
'hasLegalBasisChanged',

View File

@ -3,7 +3,6 @@ import { AnnotationWrapper } from '@models/file/annotation.wrapper';
import { KeysOf } from '@iqser/common-ui/lib/utils';
export const annotationChangesTranslations: { [key in KeysOf<AnnotationWrapper>]?: string } = {
hasBeenAdded: _('annotation-changes.added'),
hasBeenResized: _('annotation-changes.resized'),
hasBeenRecategorized: _('annotation-changes.recategorized'),
hasLegalBasisChanged: _('annotation-changes.legal-basis'),

View File

@ -340,7 +340,6 @@
"undo": "Rückgängig"
},
"annotation-changes": {
"added": "",
"forced-hint": "Hint forced",
"forced-redaction": "Redaction forced",
"header": "Manuelle Änderungen:",
@ -1262,6 +1261,15 @@
"heading": "Edit entity"
}
},
"entity": {
"info": {
"actions": {
"revert": "Revert",
"save": "Save changes"
},
"heading": "Edit entity"
}
},
"error": {
"deleted-entity": {
"dossier": {

View File

@ -340,7 +340,6 @@
"undo": "Undo"
},
"annotation-changes": {
"added": "Redaction/Hint added",
"forced-hint": "Hint forced",
"forced-redaction": "Redaction forced",
"header": "Manual changes:",

View File

@ -340,7 +340,6 @@
"undo": "Rückgängig"
},
"annotation-changes": {
"added": "",
"forced-hint": "Hint forced",
"forced-redaction": "Annotation forced",
"header": "Manuelle Änderungen:",
@ -1262,6 +1261,15 @@
"heading": "Edit entity"
}
},
"entity": {
"info": {
"actions": {
"revert": "Revert",
"save": "Save changes"
},
"heading": "Edit entity"
}
},
"error": {
"deleted-entity": {
"dossier": {

View File

@ -340,7 +340,6 @@
"undo": "Undo"
},
"annotation-changes": {
"added": "Redaction/Hint added",
"forced-hint": "Hint forced",
"forced-redaction": "Annotation forced",
"header": "Manual changes:",

View File

@ -11,7 +11,6 @@ export const LogEntryEngines = {
export type LogEntryEngine = ValuesOf<typeof LogEntryEngines>;
export const ManualRedactionTypes = {
ADD: 'ADD',
ADD_LOCALLY: 'ADD_LOCALLY',
ADD_TO_DICTIONARY: 'ADD_TO_DICTIONARY',
REMOVE: 'REMOVE',