RED-7980 - Not all unprocessed annotations are displayed correctly

This commit is contained in:
Valentin Mihai 2024-02-12 18:47:13 +02:00
parent 9a368bc8a0
commit 9d22dea6fd
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,8 @@ export class AnnotationCardComponent {
((this.annotation.isModifyDictionary &&
!this.annotation.isRemovedLocally &&
!this.annotation.hasBeenForcedHint &&
this.annotation.lastManualChange !== ManualRedactionTypes.LEGAL_BASIS_CHANGE) ||
(this.annotation.lastManualChange !== ManualRedactionTypes.LEGAL_BASIS_CHANGE &&
this.annotation.lastManualChange !== ManualRedactionTypes.RESIZE_LOCALLY)) ||
this.annotation.type === ImageCategory.SIGNATURE)
);
}

View File

@ -18,6 +18,7 @@ export const ManualRedactionTypes = {
RECATEGORIZE: 'RECATEGORIZE',
LEGAL_BASIS_CHANGE: 'LEGAL_BASIS_CHANGE',
RESIZE: 'RESIZE',
RESIZE_LOCALLY: 'RESIZE_LOCALLY',
} as const;
export type ManualRedactionType = ValuesOf<typeof ManualRedactionTypes>;