Make search empty by default

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-05-29 17:17:30 +02:00
parent 1ad8ea75b5
commit 3672c6fc88
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 3 additions and 0 deletions

View File

@ -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) {