fix: translation of dashboard chart and number card label prettier
This commit is contained in:
parent
51a87ae33b
commit
b9ed9a95ae
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue