List view -> add custom buttons to menu
This commit is contained in:
parent
7bbd36345a
commit
58c262a3ed
1 changed files with 5 additions and 0 deletions
|
|
@ -600,6 +600,11 @@ frappe.ui.Page = class Page {
|
|||
let response = action();
|
||||
me.btn_disable_enable(btn, response);
|
||||
};
|
||||
// Add actions as menu item in Mobile View
|
||||
let menu_item_label = group ? `${group} > ${label}` : label;
|
||||
let menu_item = this.add_menu_item(menu_item_label, _action, false);
|
||||
menu_item.parent().addClass("hidden-xl");
|
||||
|
||||
if (group) {
|
||||
var $group = this.get_or_add_inner_group_button(group);
|
||||
$(this.inner_toolbar).removeClass("hide");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue