From 5c738ade2eb4e0557a5ecf3f2fdb19045ca63c81 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Thu, 19 Dec 2019 12:55:33 +0530 Subject: [PATCH] fix: Make "Restriction" text translatable --- frappe/public/js/frappe/list/list_view.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() {