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.
This commit is contained in:
parent
a19fd6a8b9
commit
0e12cf4281
1 changed files with 13 additions and 6 deletions
|
|
@ -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(`
|
||||
<a style="line-height: 2.4" href="/app/print-format-builder-beta?doctype=${this.frm.doctype}">
|
||||
${__("Try the new Print Format Builder")}
|
||||
// print designer link
|
||||
if (Object.keys(frappe.boot.versions).includes("print_designer")) {
|
||||
this.page.add_inner_message(`
|
||||
<a style="line-height: 2.4" href="/app/print-designer?doctype=${this.frm.doctype}">
|
||||
${__("Try the new Print Designer")}
|
||||
</a>
|
||||
`);
|
||||
|
||||
`);
|
||||
} else {
|
||||
this.page.add_inner_message(`
|
||||
<a style="line-height: 2.4" href="https://frappecloud.com/marketplace/apps/print_designer?utm_source=framework-desk&utm_medium=print-view&utm_campaign=try-link">
|
||||
${__("Try the new Print Designer")}
|
||||
</a>
|
||||
`);
|
||||
}
|
||||
let tasks = [
|
||||
this.set_default_print_format,
|
||||
this.set_default_print_language,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue