From 370b1166568c368d01f46ff50c99d40ead155f59 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Tue, 29 Oct 2024 13:11:04 +0200 Subject: [PATCH] RED-9733: translated initials in workload icons. --- .../file-workload.component.html | 23 +++++++++++++++---- .../file-workload/file-workload.component.ts | 2 ++ .../edit-dossier-dictionary.component.html | 4 +++- .../edit-dossier-dictionary.component.ts | 2 ++ 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.html index 18a3391fa..f173c4f07 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.html +++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.html @@ -2,18 +2,33 @@ + - - - + + - diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.ts index e28112268..e177da9fe 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-workload/file-workload.component.ts @@ -10,6 +10,7 @@ import { AnnotationIconComponent } from '@shared/components/annotation-icon/anno import { AsyncPipe, NgIf } from '@angular/common'; import { TranslateModule } from '@ngx-translate/core'; import { MatIcon } from '@angular/material/icon'; +import { workloadTranslations } from '@translations/workload-translations'; @Component({ selector: 'redaction-file-workload', @@ -27,6 +28,7 @@ export class FileWorkloadComponent implements OnInit { analysisColor$: Observable; hintColor$: Observable; redactionColor$: Observable; + readonly workloadTranslations = workloadTranslations; constructor( private readonly _userService: UserService, diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.html b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.html index d2ad69a42..7adbcaea3 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.html +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.html @@ -8,7 +8,9 @@ >
diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts index a2b8ce569..28d5e725f 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts @@ -20,6 +20,7 @@ import { AnnotationIconComponent } from '@shared/components/annotation-icon/anno import { MatTooltip } from '@angular/material/tooltip'; import { MatIcon } from '@angular/material/icon'; import { TranslateModule } from '@ngx-translate/core'; +import { workloadTranslations } from '@translations/workload-translations'; @Component({ selector: 'redaction-edit-dossier-dictionary', @@ -47,6 +48,7 @@ export class EditDossierDictionaryComponent implements OnInit { activeEntryType = DictionaryEntryTypes.ENTRY; entriesToDisplay: List = []; readonly entryTypes = DictionaryEntryTypes; + protected readonly workloadTranslations = workloadTranslations; @ViewChild(DictionaryManagerComponent, { static: false }) private readonly _dictionaryManager: DictionaryManagerComponent; constructor(