From 631e56da18a7eab07d733fec4473f1bd4e52821b Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Mon, 17 Mar 2025 13:47:27 +0530 Subject: [PATCH] refactor: change text of crm and links --- frappe/public/js/frappe/list/list_sidebar.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frappe/public/js/frappe/list/list_sidebar.js b/frappe/public/js/frappe/list/list_sidebar.js index faca84ed82..90d48be4fc 100644 --- a/frappe/public/js/frappe/list/list_sidebar.js +++ b/frappe/public/js/frappe/list/list_sidebar.js @@ -309,26 +309,26 @@ frappe.views.ListSidebar = class ListSidebar { } add_crm_banner() { - if (this.list_view.meta.module != "CRM") { + if (this.list_view.meta.module != "CRM" || this.list_view.view != "List") { return; } - const message = __("Switch to Frappe CRM for smarter sales"); + const message = ""; const link = "https://frappe.io/crm?utm_source=crm-sidebar&utm_medium=sidebar&utm_campaign=frappe-ad"; - const cta = "Frappe CRM"; + const cta = __("Switch to Frappe CRM for smarter sales"); this.add_banner(message, link, cta); } add_helpdesk_banner() { - if (this.list_view.meta.module != "Support") { + if (this.list_view.meta.module != "Support" || this.list_view.view != "List") { return; } - const message = __("Upgrade your support experience with"); + const message = ""; const link = "https://frappe.io/helpdesk?utm_source=support-sidebar&utm_medium=sidebar&utm_campaign=frappe-ad"; - const cta = " Frappe Helpdesk"; + const cta = __("Upgrade your support experience with Frappe Helpdesk"); this.add_banner(message, link, cta); } };