web/admin: always override send method instead of assigning (#5426)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -37,7 +37,7 @@ export class PolicyTestForm extends Form<PolicyTestRequest> {
|
||||
return t`Successfully sent test-request.`;
|
||||
}
|
||||
|
||||
send = async (data: PolicyTestRequest): Promise<PropertyMappingTestResult> => {
|
||||
async send(data: PolicyTestRequest): Promise<PropertyMappingTestResult> {
|
||||
this.request = data;
|
||||
const result = await new PropertymappingsApi(DEFAULT_CONFIG).propertymappingsAllTestCreate({
|
||||
pmUuid: this.mapping?.pk || "",
|
||||
@ -45,7 +45,7 @@ export class PolicyTestForm extends Form<PolicyTestRequest> {
|
||||
formatResult: true,
|
||||
});
|
||||
return (this.result = result);
|
||||
};
|
||||
}
|
||||
|
||||
renderResult(): TemplateResult {
|
||||
return html`<ak-form-element-horizontal label=${t`Result`}>
|
||||
|
||||
Reference in New Issue
Block a user