fix: show form button in mobile print view
This commit is contained in:
parent
21f6fbadba
commit
2f62168654
1 changed files with 10 additions and 8 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue