From da0becc6cf32aedd8a9e7475ac857dac527b0f78 Mon Sep 17 00:00:00 2001 From: Flavia de Castro Date: Wed, 25 Jun 2025 08:37:34 -0300 Subject: [PATCH] fix: add missing translation function to webform list strings (#33080) * fix: add missing translation function to webform list strings * fix: format file --- frappe/public/js/frappe/web_form/web_form_list.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/public/js/frappe/web_form/web_form_list.js b/frappe/public/js/frappe/web_form/web_form_list.js index c2be360079..fc37ae2ef4 100644 --- a/frappe/public/js/frappe/web_form/web_form_list.js +++ b/frappe/public/js/frappe/web_form/web_form_list.js @@ -279,7 +279,7 @@ export default class WebFormList { const actions = $(".web-list-actions"); frappe.has_permission(this.doctype, "", "delete", () => { - this.add_button(actions, "delete-rows", "danger", true, "Delete", () => + this.add_button(actions, "delete-rows", "danger", true, __("Delete"), () => this.delete_rows() ); }); @@ -302,7 +302,9 @@ export default class WebFormList { create_more() { if (this.rows.length >= this.page_length) { const footer = $(".web-list-footer"); - this.add_button(footer, "more", "secondary", false, "Load More", () => this.more()); + this.add_button(footer, "more", "secondary", false, __("Load More"), () => + this.more() + ); } }