RED-9401 - removed 'hasBeenAddedLocally' check
This commit is contained in:
parent
b5fc95bfed
commit
07a78fcc26
@ -56,7 +56,6 @@ export class AnnotationWrapper implements IListable {
|
||||
textBefore?: string;
|
||||
isChangeLogEntry = false;
|
||||
engines: LogEntryEngine[] = [];
|
||||
hasBeenAddedLocally: boolean;
|
||||
hasBeenResized: boolean;
|
||||
hasBeenResizedLocally: boolean;
|
||||
hasBeenRecategorized: boolean;
|
||||
@ -258,7 +257,6 @@ export class AnnotationWrapper implements IListable {
|
||||
annotationWrapper.engines = logEntry.engines ?? [];
|
||||
annotationWrapper.section = logEntry.section;
|
||||
annotationWrapper.reference = logEntry.reference || [];
|
||||
annotationWrapper.hasBeenAddedLocally = !!logEntry.manualChanges?.find(c => c.manualRedactionType === ManualRedactionTypes.ADD);
|
||||
annotationWrapper.hasBeenResized = !!logEntry.manualChanges?.find(c => c.manualRedactionType === ManualRedactionTypes.RESIZE);
|
||||
annotationWrapper.hasBeenResizedLocally =
|
||||
annotationWrapper.hasBeenResized && annotationWrapper.engines.includes(LogEntryEngines.MANUAL);
|
||||
|
||||
@ -24,7 +24,6 @@ function isBasedOn(annotation: AnnotationWrapper, engineName: LogEntryEngine) {
|
||||
}
|
||||
|
||||
const changesProperties: KeysOf<AnnotationWrapper>[] = [
|
||||
'hasBeenAddedLocally',
|
||||
'hasBeenResized',
|
||||
'hasBeenRecategorized',
|
||||
'hasLegalBasisChanged',
|
||||
@ -57,7 +56,8 @@ export class AnnotationDetailsComponent implements OnChanges {
|
||||
}
|
||||
|
||||
const header = this._translateService.instant(_('annotation-changes.header'));
|
||||
const details = changes.map(change => this._translateService.instant(annotationChangesTranslations[change]));
|
||||
const details = [this._translateService.instant(_('annotation-changes.added-locally'))];
|
||||
details.push(...changes.map(change => this._translateService.instant(annotationChangesTranslations[change])));
|
||||
return [header, ...details.map(change => `• ${change}`)].join('\n');
|
||||
}
|
||||
|
||||
|
||||
@ -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 } = {
|
||||
hasBeenAddedLocally: _('annotation-changes.added-locally'),
|
||||
hasBeenResized: _('annotation-changes.resized'),
|
||||
hasBeenRecategorized: _('annotation-changes.recategorized'),
|
||||
hasLegalBasisChanged: _('annotation-changes.legal-basis'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user