From 71c8ae8398b347b36ca6b08e3b10493fbcf3f6af Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Thu, 23 Jun 2022 17:41:23 +1000
Subject: Make suggestion-limit client-configurable

---
 src/components/SearchModal.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/components/SearchModal.vue')

diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 93f7a59..af6aca5 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -92,7 +92,8 @@ export default defineComponent({
 			let url = new URL(window.location.href);
 			url.pathname = '/data/search';
 			url.search = '?name=' + encodeURIComponent(input.value);
-			url.search += (this.uiOpts.useReducedTree ? '&tree=reduced' : '');
+			url.search += this.uiOpts.useReducedTree ? '&tree=reduced' : '';
+			url.search += '&limit=' + this.uiOpts.searchSuggLimit;
 			// Query server, delaying/ignoring if a request was recently sent
 			this.pendingSuggReqUrl = url.toString();
 			let doReq = () => {
-- 
cgit v1.2.3

