From 8deb0f0de3109b77f44605229cf0c2f522c075aa Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Tue, 25 Oct 2022 14:26:37 +0300 Subject: [PATCH] RED-4724 --- .../modules/pdf-viewer/services/annotation-draw.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts index da0398f56..adc892f72 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts @@ -156,7 +156,11 @@ export class AnnotationDrawService { annotation.setCustomData('changeLog', String(annotationWrapper.isChangeLogEntry)); annotation.setCustomData('changeLogRemoved', String(annotationWrapper.isChangeLogRemoved)); annotation.setCustomData('opacity', String(annotation.Opacity)); - annotation.setCustomData('redactionColor', String(this._defaultColorsService.getColor(dossierTemplateId, 'previewColor'))); + + const redactionColor = annotationWrapper.isSuggestion + ? this._defaultColorsService.getColor(dossierTemplateId, 'requestAddColor') + : this._defaultColorsService.getColor(dossierTemplateId, 'previewColor'); + annotation.setCustomData('redactionColor', String(redactionColor)); annotation.setCustomData('annotationColor', String(annotationWrapper.color)); return annotation;