From 316c6966b79fce0cb93f060677ddc33338046c92 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 29 Dec 2022 23:24:43 +0100 Subject: [PATCH] web/admin: post-migration cleanup Signed-off-by: Jens Langhammer --- web/src/admin/policies/PolicyBindingForm.ts | 15 --------------- web/src/admin/providers/ldap/LDAPProviderForm.ts | 1 - .../admin/providers/proxy/ProxyProviderForm.ts | 1 - 3 files changed, 17 deletions(-) diff --git a/web/src/admin/policies/PolicyBindingForm.ts b/web/src/admin/policies/PolicyBindingForm.ts index 8c48d4b58..cc2815b56 100644 --- a/web/src/admin/policies/PolicyBindingForm.ts +++ b/web/src/admin/policies/PolicyBindingForm.ts @@ -96,21 +96,6 @@ export class PolicyBindingForm extends ModelForm { } }; - groupPolicies(policies: Policy[]): TemplateResult { - return html` - ${groupBy(policies, (p) => p.verboseName || "").map(([group, policies]) => { - return html` - ${policies.map((p) => { - const selected = this.instance?.policy === p.pk; - return html``; - })} - `; - })} - `; - } - async getOrder(): Promise { if (this.instance?.pk) { return this.instance.order; diff --git a/web/src/admin/providers/ldap/LDAPProviderForm.ts b/web/src/admin/providers/ldap/LDAPProviderForm.ts index da9c7fd6b..2a458cd8d 100644 --- a/web/src/admin/providers/ldap/LDAPProviderForm.ts +++ b/web/src/admin/providers/ldap/LDAPProviderForm.ts @@ -107,7 +107,6 @@ export class LDAPProviderFormPage extends ModelForm { } return selected; }} - ?blankable=${true} > `; diff --git a/web/src/admin/providers/proxy/ProxyProviderForm.ts b/web/src/admin/providers/proxy/ProxyProviderForm.ts index 5998d311a..b2b847b5a 100644 --- a/web/src/admin/providers/proxy/ProxyProviderForm.ts +++ b/web/src/admin/providers/proxy/ProxyProviderForm.ts @@ -1,7 +1,6 @@ import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import { first } from "@goauthentik/common/utils"; import "@goauthentik/elements/SearchSelect"; -import "@goauthentik/elements/SearchSelect"; import "@goauthentik/elements/forms/FormGroup"; import "@goauthentik/elements/forms/HorizontalFormElement"; import { ModelForm } from "@goauthentik/elements/forms/ModelForm";