extend search

This commit is contained in:
Vri 🌈 2023-06-16 21:11:38 +02:00
parent 6a247c8135
commit 4f8ab93b0d
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -34,7 +34,7 @@ export default {
let filteredPapers: Papers[] = this.papers
if (paperQuery !== '') {
filteredPapers = this.papers.filter((paper) => {
return paper.name.toLowerCase().includes(paperQuery.toLowerCase())
return paper.name.toLowerCase().includes(paperQuery.toLowerCase()) || paper.content.toLowerCase().includes(paperQuery.toLowerCase()) || paper.reference.toLowerCase().includes(paperQuery.toLowerCase())
})
}
if (this.paperFilter?.type !== '') {