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

@ -31,7 +31,6 @@ def create_test_admin_user(name: Optional[str] = None, set_password=False) -> Us
name=uid,
email=f"{uid}@goauthentik.io",
)
if set_password:
user.set_password(uid)
user.save()
group.users.add(user)

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