web/admin: post-migration cleanup

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-29 23:24:43 +01:00
parent 6a44695c48
commit 316c6966b7
No known key found for this signature in database
3 changed files with 0 additions and 17 deletions

View File

@ -96,21 +96,6 @@ export class PolicyBindingForm extends ModelForm<PolicyBinding, string> {
} }
}; };
groupPolicies(policies: Policy[]): TemplateResult {
return html`
${groupBy<Policy>(policies, (p) => p.verboseName || "").map(([group, policies]) => {
return html`<optgroup label=${group}>
${policies.map((p) => {
const selected = this.instance?.policy === p.pk;
return html`<option ?selected=${selected} value=${ifDefined(p.pk)}>
${p.name}
</option>`;
})}
</optgroup>`;
})}
`;
}
async getOrder(): Promise<number> { async getOrder(): Promise<number> {
if (this.instance?.pk) { if (this.instance?.pk) {
return this.instance.order; return this.instance.order;

View File

@ -107,7 +107,6 @@ export class LDAPProviderFormPage extends ModelForm<LDAPProvider, number> {
} }
return selected; return selected;
}} }}
?blankable=${true}
> >
</ak-search-select> </ak-search-select>
`; `;

View File

@ -1,7 +1,6 @@
import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import { DEFAULT_CONFIG } from "@goauthentik/common/api/config";
import { first } from "@goauthentik/common/utils"; import { first } from "@goauthentik/common/utils";
import "@goauthentik/elements/SearchSelect"; import "@goauthentik/elements/SearchSelect";
import "@goauthentik/elements/SearchSelect";
import "@goauthentik/elements/forms/FormGroup"; import "@goauthentik/elements/forms/FormGroup";
import "@goauthentik/elements/forms/HorizontalFormElement"; import "@goauthentik/elements/forms/HorizontalFormElement";
import { ModelForm } from "@goauthentik/elements/forms/ModelForm"; import { ModelForm } from "@goauthentik/elements/forms/ModelForm";