From ab4569e5d6b6bd0aa813004ff2ee0df658cea3e4 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 11 Apr 2021 13:33:35 +0200 Subject: [PATCH] web/admin: fix application form's provider selection not working Signed-off-by: Jens Langhammer --- authentik/providers/proxy/api.py | 5 ----- web/src/pages/applications/ApplicationForm.ts | 4 ++-- web/src/pages/applications/ApplicationListPage.ts | 6 +++--- web/src/pages/applications/ApplicationViewPage.ts | 6 +++--- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/authentik/providers/proxy/api.py b/authentik/providers/proxy/api.py index ce0de0add..cd2e54cff 100644 --- a/authentik/providers/proxy/api.py +++ b/authentik/providers/proxy/api.py @@ -100,8 +100,3 @@ class ProxyOutpostConfigViewSet(ReadOnlyModelViewSet): queryset = ProxyProvider.objects.filter(application__isnull=False) serializer_class = ProxyOutpostConfigSerializer ordering = ["name"] - - def get_queryset(self): - qs = super().get_queryset() - print(qs) - return qs diff --git a/web/src/pages/applications/ApplicationForm.ts b/web/src/pages/applications/ApplicationForm.ts index 3d000959a..a169e0d94 100644 --- a/web/src/pages/applications/ApplicationForm.ts +++ b/web/src/pages/applications/ApplicationForm.ts @@ -72,7 +72,7 @@ export class ApplicationForm extends Form { ${Array.from(m).map(([group, providers]) => { return html` ${providers.map(p => { - const selected = (this.application?.provider?.pk === p.pk) || (this.provider === p.pk); + const selected = (this.application?.provider === p.pk) || (this.provider === p.pk); return html``; })} `; @@ -98,7 +98,7 @@ export class ApplicationForm extends Form { + name="provider">