Make search empty by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
1ad8ea75b5
commit
3672c6fc88
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue