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

View File

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