From 8aa1a62e2c0f9b86955ffb6983f4cdb65a878bec Mon Sep 17 00:00:00 2001 From: Manuel Reinhardt Date: Wed, 3 Jan 2024 16:44:24 +0100 Subject: [PATCH] feat(pat-autosuggest): load more syslabcom/scrum#1638 --- src/pat/auto-suggest/auto-suggest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pat/auto-suggest/auto-suggest.js b/src/pat/auto-suggest/auto-suggest.js index 6548957bd..8b94f6edd 100644 --- a/src/pat/auto-suggest/auto-suggest.js +++ b/src/pat/auto-suggest/auto-suggest.js @@ -265,7 +265,8 @@ export default Base.extend({ results: (data, page) => { // parse the results into the format expected by Select2. // data must be a list of objects with keys "id" and "text" - return { results: data, page: page }; + var more = Object.keys(data).length >= 10; + return { results: data, page: page, more: more }; }, }, },