diff --git a/frappe/public/js/frappe/list/list_view.js b/frappe/public/js/frappe/list/list_view.js
index 777030c923..e8abb9d490 100644
--- a/frappe/public/js/frappe/list/list_view.js
+++ b/frappe/public/js/frappe/list/list_view.js
@@ -137,8 +137,8 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
show_restricted_list_indicator_if_applicable() {
const match_rules_list = frappe.perm.get_match_rules(this.doctype);
- if(match_rules_list.length) {
- this.restricted_list = $('')
+ if (match_rules_list.length) {
+ this.restricted_list = $(``)
.prepend('')
.click(() => this.show_restrictions(match_rules_list))
.appendTo(this.page.page_form);
@@ -148,7 +148,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
show_restrictions(match_rules_list=[]) {
frappe.msgprint(frappe.render_template('list_view_permission_restrictions', {
condition_list: match_rules_list
- }), 'Restrictions');
+ }), __('Restrictions'));
}
set_fields() {