web/user: also search desc and publisher

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-10-28 11:31:29 +02:00
parent c5e7801247
commit 479e9750c7
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export class LibraryPage extends LitElement {
new CoreApi(DEFAULT_CONFIG).coreApplicationsList({}).then((apps) => {
this.apps = apps;
this.fuse = new Fuse(apps.results, {
keys: ["slug", "name"],
keys: ["slug", "name", "metaDescription", "metaPublisher"],
});
if (!this.fuse || !this.query) return;
const matchingApps = this.fuse.search(this.query);