fix: progress bar not rendering in list view for Percent fields
This commit is contained in:
parent
100d15a1f9
commit
2f2abbf0a3
1 changed files with 5 additions and 0 deletions
|
|
@ -984,6 +984,11 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
html = `<span class="ellipsis">
|
||||
${_value}
|
||||
</span>`;
|
||||
} else if (df.fieldtype === "Percent") {
|
||||
return `<div style="width: 100%;"
|
||||
title="${__(label)}: ${frappe.utils.escape_html(_value)}">
|
||||
${format()}
|
||||
</div>`;
|
||||
} else {
|
||||
html = `<a class="${filterable} ellipsis"
|
||||
data-filter="${fieldname},=,${frappe.utils.escape_html(value)}">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue