From fd8cfcc9e7ac381996974dbc160cf413db0fc7aa Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Mon, 25 Sep 2023 18:13:24 +0530 Subject: [PATCH] fix: linters --- frappe/public/js/frappe/ui/filters/filter_list.js | 5 ++++- frappe/public/js/frappe/ui/group_by/group_by.js | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/ui/filters/filter_list.js b/frappe/public/js/frappe/ui/filters/filter_list.js index 551611ebf4..9d017000b6 100644 --- a/frappe/public/js/frappe/ui/filters/filter_list.js +++ b/frappe/public/js/frappe/ui/filters/filter_list.js @@ -138,7 +138,10 @@ frappe.ui.FilterGroup = class { this.filter_button.find(".filter-icon").toggleClass("active", filters_applied); this.filter_button.find(".button-label").html(button_label); - this.filter_button.attr("title", `${ this.filters.length } Filter${ this.filters.length > 1 ? "s" : "" } Applied`); + this.filter_button.attr( + "title", + `${this.filters.length} Filter${this.filters.length > 1 ? "s" : ""} Applied` + ); } set_filter_events() { diff --git a/frappe/public/js/frappe/ui/group_by/group_by.js b/frappe/public/js/frappe/ui/group_by/group_by.js index c1059b1f8f..0ed9c9e3db 100644 --- a/frappe/public/js/frappe/ui/group_by/group_by.js +++ b/frappe/public/js/frappe/ui/group_by/group_by.js @@ -408,7 +408,9 @@ frappe.ui.GroupBy = class { update_group_by_button() { const group_by_applied = Boolean(this.group_by_field); const button_label = group_by_applied - ? __("Grouped by {0}", [this.get_group_by_field_label()]) + ? __("Grouped by {0}", [ + this.get_group_by_field_label(), + ]) : __("Add Group"); this.group_by_button @@ -418,7 +420,10 @@ frappe.ui.GroupBy = class { this.group_by_button.find(".group-by-icon").toggleClass("active", group_by_applied); this.group_by_button.find(".button-label").html(button_label); - this.group_by_button.attr("title", `Results are Grouped by ${this.get_group_by_field_label()}`); + this.group_by_button.attr( + "title", + `Results are Grouped by ${this.get_group_by_field_label()}` + ); } get_group_by_field_label() {