diff --git a/frappe/public/js/frappe/ui/sidebar/sidebar.js b/frappe/public/js/frappe/ui/sidebar/sidebar.js index 4930672dd7..a24b17cc5f 100644 --- a/frappe/public/js/frappe/ui/sidebar/sidebar.js +++ b/frappe/public/js/frappe/ui/sidebar/sidebar.js @@ -93,6 +93,7 @@ frappe.ui.Sidebar = class Sidebar { this.promotional_banners = []; this.get_crm_banner(module); + this.get_helpdesk_banner(module); this.render_promotional_banners(); } @@ -100,26 +101,16 @@ frappe.ui.Sidebar = class Sidebar { get_crm_banner(module) { if (module != "CRM") return; - const icon = $(` - - - `); + const icon = + $(` + + + +`); const title = __("Switch to Frappe CRM"); const message = __( - "Frappe CRM helps you work, not slow you down. Open-source, intuitive, and free from extra costs. Give it a try!" + "Sales without complexity, lock-in and per-user costs. Try it for free!" ); const link = "https://frappe.io/crm?utm_source=crm-sidebar&utm_medium=sidebar&utm_campaign=frappe-ad"; @@ -127,6 +118,26 @@ frappe.ui.Sidebar = class Sidebar { this.promotional_banners.push({ title, message, link, icon }); } + get_helpdesk_banner(module) { + if (module != "Support") return; + + const icon = + $(` + + + +`); + + const title = __("Switch to Helpdesk"); + const message = __( + "Support without complexity, lock-in and per-user costs. Try it for free!" + ); + const link = + "https://frappe.io/helpdesk?utm_source=support-sidebar&utm_medium=sidebar&utm_campaign=frappe-ad"; + + this.promotional_banners.push({ title, message, link, icon }); + } + render_promotional_banners() { let me = this;