From 62e34bf5b0ed8aa807c8f557a1047d8c2636faf9 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Mon, 26 Aug 2019 12:46:46 +0100 Subject: [PATCH] refactor suggestion list --- webapp/components/Editor/Editor.vue | 34 ------ webapp/components/Editor/SuggestionList.vue | 114 ++++++++++++-------- 2 files changed, 70 insertions(+), 78 deletions(-) diff --git a/webapp/components/Editor/Editor.vue b/webapp/components/Editor/Editor.vue index d08257347..c511eae8e 100644 --- a/webapp/components/Editor/Editor.vue +++ b/webapp/components/Editor/Editor.vue @@ -4,14 +4,12 @@ @@ -68,12 +66,6 @@ export default { }, computed: { ...mapGetters({ placeholder: 'editor/placeholder' }), - hasResults() { - return this.filteredItems.length - }, - showSuggestions() { - return this.query || this.hasResults - }, optionalExtensions() { const extensions = [] // Don't change the following line. The functionallity is in danger! @@ -290,32 +282,6 @@ export default {