fix: translation of dashboard chart and number card label prettier

This commit is contained in:
Nihantra C. Patel 2024-04-04 12:35:14 +05:30 committed by GitHub
parent 51a87ae33b
commit b9ed9a95ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,7 +98,9 @@ export default class Widget {
let base = this.title || this.label || this.name;
let title = max_chars ? frappe.ellipsis(base, max_chars) : base;
this.title_field[0].innerHTML = `<span class="ellipsis" title="${__(title)}">${__(title)}</span>`;
this.title_field[0].innerHTML = `<span class="ellipsis" title="${__(title)}">${__(
title
)}</span>`;
if (max_chars) {
this.title_field[0].setAttribute("title", this.title || this.label);
}