Merge branch 'VM/RED-7980' into 'master'

RED-7980 - Not all unprocessed annotations are displayed correctly

Closes RED-7980

See merge request redactmanager/red-ui!300
This commit is contained in:
Valentin-Gabriel Mihai 2024-02-13 09:18:34 +01:00
commit bd7662d746
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

@ -19,6 +19,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>;