mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
give priority to field label over i18n string, if it exists (fix #1070)
This commit is contained in:
parent
e5399458ea
commit
bcf05a124b
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ Template.user_info.helpers({
|
|||
if (Telescope.getNestedProperty(user, fieldName)) {
|
||||
var field = schema._schema[fieldName];
|
||||
var item = {
|
||||
label: i18n.t(fieldName.replace("telescope.", "")),
|
||||
label: !!field.label ? field.label: i18n.t(fieldName.replace("telescope.", "")),
|
||||
value: Telescope.getNestedProperty(user, fieldName)
|
||||
};
|
||||
if (!!field.template) {
|
||||
|
|
Loading…
Add table
Reference in a new issue