Merge pull request #35638 from Packeting1/fix/print-view-mobile-form-button

fix: show form button in mobile print view
This commit is contained in:
Ejaaz Khan 2026-01-04 15:41:34 +05:30 committed by GitHub
commit c686a2ba3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,14 +88,16 @@ frappe.ui.form.PrintView = class {
icon: "refresh",
});
this.page.add_action_icon(
"es-line-filetype",
() => {
this.go_to_form_view();
},
"",
__("Form")
);
if (frappe.is_mobile()) {
this.page.add_button(__("Form"), () => this.go_to_form_view(), { icon: "small-file" });
} else {
this.page.add_action_icon(
"es-line-filetype",
() => this.go_to_form_view(),
"",
__("Form")
);
}
}
setup_sidebar() {