web/user: filter applications by launch URL lto show empty state

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-03-14 21:15:42 +01:00
parent ceb894039e
commit e03dd70f2f

View file

@ -165,7 +165,9 @@ export class LibraryPage extends LitElement {
<section class="pf-c-page__main-section">
${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()}`,
)}