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:
parent
ceb894039e
commit
e03dd70f2f
|
@ -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()}`,
|
||||
)}
|
||||
|
|
Reference in New Issue