From ec05984958ac84f95d158f4bed6c7d3cdee4f808 Mon Sep 17 00:00:00 2001 From: Akiff Manji Date: Wed, 1 Sep 2021 14:15:15 -0700 Subject: [PATCH] Fixes name display issue for credential types with no manaul translation entries Signed-off-by: Akiff Manji --- src/app/cred/form.component.html | 6 ++++-- src/app/cred/form.component.ts | 4 ++++ src/app/cred/list.component.html | 4 ++-- src/app/cred/list.component.ts | 8 +++++++- src/app/cred/timeline-cred.component.html | 2 +- src/app/cred/timeline-cred.component.ts | 7 ++++++- src/app/general-data.service.ts | 8 +++++++- src/app/search/filters.component.html | 3 ++- src/app/search/filters.component.ts | 9 ++++++++- src/app/shared/components/select/select.component.ts | 8 +++----- 10 files changed, 44 insertions(+), 15 deletions(-) diff --git a/src/app/cred/form.component.html b/src/app/cred/form.component.html index 8465358..dd49a19 100644 --- a/src/app/cred/form.component.html +++ b/src/app/cred/form.component.html @@ -5,7 +5,9 @@
-

{{'name.' + record.credential_type.description | translate}}

+

+ {{ translateEntry(record.credential_type.description, "name")}} +