From 40ff7602c9e7bbc0c68259a6f8724f0edd5f1d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Wed, 9 Feb 2022 14:57:18 +0200 Subject: [PATCH] Correctly set redaction color --- .../table-item/file-workload/file-workload.component.ts | 2 +- .../dossier-workload-column.component.ts | 2 +- apps/red-ui/src/app/state/app-state.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/screens/dossier-overview/components/table-item/file-workload/file-workload.component.ts b/apps/red-ui/src/app/modules/dossier/screens/dossier-overview/components/table-item/file-workload/file-workload.component.ts index ab3b664e1..cd7ceaddc 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/dossier-overview/components/table-item/file-workload/file-workload.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/dossier-overview/components/table-item/file-workload/file-workload.component.ts @@ -40,7 +40,7 @@ export class FileWorkloadComponent { } get redactionColor() { - return this._getDictionaryColor('dossier_redaction'); + return this._getDictionaryColor('redaction'); } private _getDictionaryColor(type: string) { diff --git a/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossier-workload-column/dossier-workload-column.component.ts b/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossier-workload-column/dossier-workload-column.component.ts index a78074fe6..4989a0a84 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossier-workload-column/dossier-workload-column.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossier-workload-column/dossier-workload-column.component.ts @@ -23,6 +23,6 @@ export class DossierWorkloadColumnComponent { } get redactionColor() { - return this._appStateService.getDictionaryColor('dossier_redaction', this.dossier.dossierTemplateId); + return this._appStateService.getDictionaryColor('redaction', this.dossier.dossierTemplateId); } } diff --git a/apps/red-ui/src/app/state/app-state.service.ts b/apps/red-ui/src/app/state/app-state.service.ts index 8a313372b..98c5a8dc8 100644 --- a/apps/red-ui/src/app/state/app-state.service.ts +++ b/apps/red-ui/src/app/state/app-state.service.ts @@ -350,7 +350,7 @@ export class AppStateService { dictionaryData['redaction'] = new Dictionary( { - hexColor: colors.previewColor || FALLBACK_COLOR, + hexColor: colors.manualRedactionColor || FALLBACK_COLOR, type: 'redaction', }, true,