Merge pull request #28676 from mahsem/patch-2

fix: add label for translation in shortcut_widget.js
This commit is contained in:
Akhil Narang 2024-12-05 13:15:59 +05:30 committed by GitHub
commit 3d615b613a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,7 @@ export default class ShortcutWidget extends Widget {
const label = get_label();
let color = this.color && count ? this.color.toLowerCase() : "gray";
$(
`<div class="indicator-pill no-indicator-dot ellipsis ${color}">${label}</div>`
`<div class="indicator-pill no-indicator-dot ellipsis ${color}">${__(label)}</div>`
).appendTo(this.action_area);
$(frappe.utils.icon("es-line-arrow-up-right", "xs", "", "", "ml-2")).appendTo(