From: Vincent Vanwaelscappel Date: Tue, 22 Feb 2022 14:53:53 +0000 (+0100) Subject: wip #5120 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=717564e0a9109049ec98a23d2726c1a877c207da;p=odl.git wip #5120 @1 --- diff --git a/resources/js/search.js b/resources/js/search.js index a881dba..ef52c55 100644 --- a/resources/js/search.js +++ b/resources/js/search.js @@ -14,8 +14,7 @@ export default () => ({ prefix: true, // Allow partial matches processTerm: (term, _fieldName) => term.length < 3 ? null : term.toLowerCase() }, - }, - query: '', // The search query + }, query: '', // The search query medialibrary: '', // Holds URL of the media library that is passed in from the component async init() { @@ -55,10 +54,11 @@ export default () => ({ return []; } - // console.log(`search results: ${this.query}`); - // console.table(this.miniSearch.search(this.query)) + return this.miniSearch.search(this.query); + }, - return this.miniSearch.search(this.query) + get showResults() { + return false; }, get resultCount() { diff --git a/resources/views/components/search.blade.php b/resources/views/components/search.blade.php index bffa838..5c8b45c 100644 --- a/resources/views/components/search.blade.php +++ b/resources/views/components/search.blade.php @@ -63,7 +63,7 @@ x-show="searchOpen" x-transition:enter.opacity.duration.500ms.delay.1500ms x-transition:leave.opacity.delay.50ms> -
+