Add support for search keywords to solve issue #372

This commit is contained in:
James Coleman 2022-05-12 17:30:24 -05:00
parent 2ac75c0534
commit 9506ed53c8
3 changed files with 4 additions and 1 deletions

View File

@ -127,6 +127,7 @@ services:
# icon: "fab fa-jenkins"
subtitle: "Bookmark example"
tag: "app"
keywords: "self hosted reddit"
url: "https://www.reddit.com/r/selfhosted/"
target: "_blank" # optional html tag target attribute
- name: "Another one"

View File

@ -75,6 +75,7 @@ services:
logo: "assets/tools/sample.png"
subtitle: "Bookmark example"
tag: "app"
keywords: "self hosted reddit"
url: "https://www.reddit.com/r/selfhosted/"
target: "_blank" # optional html a tag target attribute
- name: "Another one"

View File

@ -264,7 +264,8 @@ export default {
return (
item.name.toLowerCase().includes(this.filter) ||
(item.subtitle && item.subtitle.toLowerCase().includes(this.filter)) ||
(item.tag && item.tag.toLowerCase().includes(this.filter))
(item.tag && item.tag.toLowerCase().includes(this.filter)) ||
(item.keywords && item.keywords.toLowerCase().includes(this.filter))
);
},
navigateToFirstService: function (target) {