From cb78a6da65b8dd14bdc2528528bd2fe804af2d2b Mon Sep 17 00:00:00 2001 From: Gerard Date: Mon, 18 Feb 2019 11:35:16 +0100 Subject: [PATCH] not being able to translate titles fixed --- front/core/directives/uvc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/core/directives/uvc.js b/front/core/directives/uvc.js index cce9e9ee5..45e04a27b 100644 --- a/front/core/directives/uvc.js +++ b/front/core/directives/uvc.js @@ -13,7 +13,7 @@ export function directive($http, $compile, vnApp, $translate) { headerList.forEach(header => { let id = header.getAttribute('th-id') || header.getAttribute('field'); ids.push(id); - titles[id] = header.innerText || id; + titles[id] = header.innerText || id.charAt(0).toUpperCase() + id.slice(1); }); $scope.fields = ids;