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
1 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,9 @@ export class LibraryPage extends LitElement {
<section class="pf-c-page__main-section"> <section class="pf-c-page__main-section">
${loading( ${loading(
this.apps, 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.renderApps(config)
: this.renderEmptyState()}`, : this.renderEmptyState()}`,
)} )}