From 0e12cf42819983dff819facf3eb179a386afe010 Mon Sep 17 00:00:00 2001 From: Maharshi Patel <39730881+maharshivpatel@users.noreply.github.com> Date: Fri, 23 Feb 2024 20:19:08 +0530 Subject: [PATCH] chore: replace PFB Beta link with Print Designer (#25032) Replaced Print Format Builder Beta link in print-view to Print Designer. if App is installed it opens Print Designer, if not it opens Frappe Cloud Marketplace Link. --- frappe/printing/page/print/print.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/frappe/printing/page/print/print.js b/frappe/printing/page/print/print.js index fe52ad9915..9958af58c7 100644 --- a/frappe/printing/page/print/print.js +++ b/frappe/printing/page/print/print.js @@ -184,13 +184,20 @@ frappe.ui.form.PrintView = class { this.set_breadcrumbs(); this.setup_customize_dialog(); - // print format builder beta - this.page.add_inner_message(` - - ${__("Try the new Print Format Builder")} + // print designer link + if (Object.keys(frappe.boot.versions).includes("print_designer")) { + this.page.add_inner_message(` + + ${__("Try the new Print Designer")} - `); - + `); + } else { + this.page.add_inner_message(` + + ${__("Try the new Print Designer")} + + `); + } let tasks = [ this.set_default_print_format, this.set_default_print_language,