web: only show applications with http link

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-11-23 22:40:31 +01:00
parent 9c9c00755a
commit 8794c840cf
2 changed files with 5 additions and 4 deletions

View File

@ -98,7 +98,9 @@ export class LibraryPage extends LitElement {
renderApps(config: UIConfig): TemplateResult {
return html`<div class="pf-l-gallery pf-m-gutter">
${this.apps?.results
.filter((app) => app.launchUrl)
.filter((app) => {
return app.launchUrl && app.launchUrl.startsWith("http");
})
.map(
(app) =>
html`<ak-library-app