web/admin: always override send method instead of assigning (#5426)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2023-04-30 19:55:29 +03:00
committed by GitHub
parent bb8b87fcb3
commit fef841a458
66 changed files with 137 additions and 138 deletions

View File

@ -25,7 +25,7 @@ export class SAMLProviderImportForm extends Form<SAMLProvider> {
return t`Successfully imported provider.`;
}
send = (data: SAMLProvider): Promise<void> => {
async send(data: SAMLProvider): Promise<void> {
const file = this.getFormFiles()["metadata"];
if (!file) {
throw new SentryIgnoredError("No form data");
@ -35,7 +35,7 @@ export class SAMLProviderImportForm extends Form<SAMLProvider> {
name: data.name,
authorizationFlow: data.authorizationFlow || "",
});
};
}
renderForm(): TemplateResult {
return html`<form class="pf-c-form pf-m-horizontal">