fix(Image View): translate info field
This commit is contained in:
parent
1349a73e14
commit
3bc636ce30
1 changed files with 2 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ frappe.views.ImageView = class ImageView extends frappe.views.ListView {
|
|||
let set = false;
|
||||
info_fields.forEach((field, index) => {
|
||||
if (item[field] && !set) {
|
||||
if (index == 0) info_html += `<li>${item[field]}</li>`;
|
||||
else info_html += `<li class="text-muted">${item[field]}</li>`;
|
||||
if (index == 0) info_html += `<li>${__(item[field])}</li>`;
|
||||
else info_html += `<li class="text-muted">${__(item[field])}</li>`;
|
||||
set = true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue