From 29083b1c89833dbdc145e3e35b35b5bd2d13c253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Volds=C3=A6ter?= <ole.voldsater@uib.no> Date: Tue, 11 Feb 2020 12:36:18 +0100 Subject: [PATCH] kommenterte ut autocomplete --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5236e6c..a8081c4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,7 +28,7 @@ export default { search_query: window.location.href.split("?q=")[1], search_results: [], article: {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}}, - search: function(q) { + /*search: function(q) { return new Promise(resolve => { return axios.post(api_endpoint + '_search/', { @@ -46,7 +46,7 @@ export default { resolve(hits) }) }) - }, + },*/ result_view: function(result) { if (result._source) return result._source.lemmas.map(x => x.word).join(', ') -- GitLab