Skip to content

Commit

Permalink
fix: hide or show button to load more
Browse files Browse the repository at this point in the history
(cherry picked from commit 8220828)
  • Loading branch information
HarryPaulo authored and mergify[bot] committed Aug 16, 2023
1 parent 51c0439 commit c2f20f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frappe/public/js/frappe/form/link_selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,11 @@ frappe.ui.form.LinkSelector = class LinkSelector {
});
}

var more_btn = me.dialog.fields_dict.more.$wrapper;
if (r.values.length < 20) {
var more_btn = me.dialog.fields_dict.more.$wrapper;
more_btn.hide();
} else {
more_btn.show();
}
},
this.dialog.get_primary_btn()
Expand Down

0 comments on commit c2f20f7

Please sign in to comment.