Merge branch 'list-view-freeze-fix' of github.com:gavindsouza/frappe into list-view-freeze-fix
This commit is contained in:
commit
7d2467afb6
1 changed files with 1 additions and 12 deletions
|
|
@ -124,14 +124,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
|
||||
const actions = this.actions_menu_items.concat(this.workflow_action_menu_items);
|
||||
actions.map(item => {
|
||||
let action = () => {
|
||||
frappe.run_serially([
|
||||
this.toggle_auto_refresh(false),
|
||||
item.action,
|
||||
this.toggle_auto_refresh(true)
|
||||
]);
|
||||
}
|
||||
const $item = this.page.add_actions_menu_item(item.label, action, item.standard);
|
||||
const $item = this.page.add_actions_menu_item(item.label, item.action, item.standard);
|
||||
if (item.class) {
|
||||
$item.addClass(item.class);
|
||||
}
|
||||
|
|
@ -142,10 +135,6 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
});
|
||||
}
|
||||
|
||||
toggle_auto_refresh(state) {
|
||||
this.list_view_settings.disable_auto_refresh = !state;
|
||||
}
|
||||
|
||||
show_restricted_list_indicator_if_applicable() {
|
||||
const match_rules_list = frappe.perm.get_match_rules(this.doctype);
|
||||
if(match_rules_list.length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue