|
|
@@ -714,6 +714,10 @@ frappe.ui.Page = class Page { |
|
|
|
${opts.icon ? frappe.utils.icon(opts.icon): ''} |
|
|
|
${label} |
|
|
|
</button>`); |
|
|
|
// Add actions as menu item in Mobile View (similar to "add_custom_button" in forms.js) |
|
|
|
let menu_item = this.add_menu_item(label, click, false); |
|
|
|
menu_item.parent().addClass("hidden-xl"); |
|
|
|
|
|
|
|
button.appendTo(this.custom_actions); |
|
|
|
button.on('click', click); |
|
|
|
this.custom_actions.removeClass('hide'); |
|
|
|