From 3672c6fc8853de49685b5caf440cbbddd51f4679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 29 May 2018 17:17:30 +0200 Subject: [PATCH] Make search empty by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/src/components/appList.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/settings/src/components/appList.vue b/settings/src/components/appList.vue index a1eb71f46d..2bec287a28 100644 --- a/settings/src/components/appList.vue +++ b/settings/src/components/appList.vue @@ -83,6 +83,9 @@ export default { .filter(app => app.name.toLowerCase().search(this.search.toLowerCase()) !== -1) }, searchApps() { + if (this.search === '') { + return []; + } return this.$store.getters.getAllApps .filter(app => { if (app.name.toLowerCase().search(this.search.toLowerCase()) !== -1) {