feat: make report name translatable (#20608)

This commit is contained in:
Raffael Meyer 2023-04-07 11:28:02 +02:00 committed by GitHub
parent 3a76a771a9
commit cd670bf78f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
this.filters = this.report_doc.json.filters;
this.order_by = this.report_doc.json.order_by;
this.add_totals_row = this.report_doc.json.add_totals_row;
this.page_title = this.report_name;
this.page_title = __(this.report_name);
this.page_length = this.report_doc.json.page_length || 20;
this.order_by = this.report_doc.json.order_by || "modified desc";
this.chart_args = this.report_doc.json.chart_args;