mirror of https://github.com/Lissy93/dashy.git
You can now filter not only by name, but also description, url etc- awesome
This commit is contained in:
parent
c7308a2909
commit
5e56e0c3c7
|
@ -41,7 +41,10 @@ export default {
|
|||
},
|
||||
filterTiles (allTiles) {
|
||||
return allTiles.filter(tile => {
|
||||
return tile.title.toLowerCase().includes(this.searchTile.toLowerCase())
|
||||
const searchTerm = this.searchTile.toLowerCase()
|
||||
return tile.title.toLowerCase().includes(searchTerm) ||
|
||||
tile.description.toLowerCase().includes(searchTerm) ||
|
||||
tile.url.toLowerCase().includes(searchTerm)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue