From 965ca1b04cd605eaefec89827092da486f918866 Mon Sep 17 00:00:00 2001
From: "Henrik.Askjer" <henrik.askjer@uib.no>
Date: Tue, 31 Aug 2021 09:23:57 +0200
Subject: [PATCH] Comment out unused code

---
 src/components/Autocomplete.vue   | 2 ++
 src/components/DictionaryView.vue | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue
index 5ea7c13a..725f1827 100644
--- a/src/components/Autocomplete.vue
+++ b/src/components/Autocomplete.vue
@@ -63,6 +63,7 @@
         if (item) {
           if (typeof item != 'string') {
             let self = this
+            /*
             if (item.articles) {
             axios.get(self.endpoint + 'articles?', {params: {lord: item.match,
                                                              dict: self.$parent.lang}})
@@ -80,6 +81,7 @@
                     }
                   )
               }
+              */
               this.items = []
               this.suggesting = false
 
diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue
index 040184af..91fbd67b 100644
--- a/src/components/DictionaryView.vue
+++ b/src/components/DictionaryView.vue
@@ -205,11 +205,14 @@ export default {
       if(event.articles){
         let source = '/' + this.lang + '/w/' + event.match
         this.$router.push(source)
+        /*
         this.search_results = event.articles.map(a => Object.assign(a, {source: source}))
         this.article = null
         this.error = null
-        this.waiting_for_articles = true
+        
         history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang, error: this.error}, '')
+        */
+        this.waiting_for_articles = true
         navigate_to_word(this, event.match)
         this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: event.match}})
       }else{
-- 
GitLab