From e03dd70f2fd67a63b91c7fe06cf806332b7b81ac Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 14 Mar 2022 21:15:42 +0100 Subject: [PATCH] web/user: filter applications by launch URL lto show empty state Signed-off-by: Jens Langhammer --- web/src/user/LibraryPage.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/user/LibraryPage.ts b/web/src/user/LibraryPage.ts index 70c62e72f..cd0d5b5e4 100644 --- a/web/src/user/LibraryPage.ts +++ b/web/src/user/LibraryPage.ts @@ -165,7 +165,9 @@ export class LibraryPage extends LitElement {
${loading( this.apps, - html`${(this.apps?.results.length || 0) > 0 + html`${((this.apps?.results || []).filter((app) => { + return app.launchUrl !== null; + })).length > 0 ? this.renderApps(config) : this.renderEmptyState()}`, )}