web/admin: fix @change handler for ak-radio elements (#7348)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
83b84e8d26
commit
41d372a340
|
@ -114,8 +114,8 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel {
|
||||||
label=${msg("Client type")}
|
label=${msg("Client type")}
|
||||||
.value=${provider?.clientType}
|
.value=${provider?.clientType}
|
||||||
required
|
required
|
||||||
@change=${(ev: CustomEvent<ClientTypeEnum>) => {
|
@change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => {
|
||||||
this.showClientSecret = ev.detail !== ClientTypeEnum.Public;
|
this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public;
|
||||||
}}
|
}}
|
||||||
.options=${clientTypeOptions}
|
.options=${clientTypeOptions}
|
||||||
>
|
>
|
||||||
|
|
|
@ -78,8 +78,8 @@ export class TransportForm extends ModelForm<NotificationTransport, string> {
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal label=${msg("Mode")} ?required=${true} name="mode">
|
<ak-form-element-horizontal label=${msg("Mode")} ?required=${true} name="mode">
|
||||||
<ak-radio
|
<ak-radio
|
||||||
@change=${(ev: CustomEvent<NotificationTransportModeEnum>) => {
|
@change=${(ev: CustomEvent<{ value: NotificationTransportModeEnum }>) => {
|
||||||
this.onModeChange(ev.detail);
|
this.onModeChange(ev.detail.value);
|
||||||
}}
|
}}
|
||||||
.options=${[
|
.options=${[
|
||||||
{
|
{
|
||||||
|
|
|
@ -210,8 +210,8 @@ export class OAuth2ProviderFormPage extends ModelForm<OAuth2Provider, number> {
|
||||||
label=${msg("Client type")}
|
label=${msg("Client type")}
|
||||||
.value=${provider?.clientType}
|
.value=${provider?.clientType}
|
||||||
required
|
required
|
||||||
@change=${(ev: CustomEvent<ClientTypeEnum>) => {
|
@change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => {
|
||||||
this.showClientSecret = ev.detail !== ClientTypeEnum.Public;
|
this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public;
|
||||||
}}
|
}}
|
||||||
.options=${clientTypeOptions}
|
.options=${clientTypeOptions}
|
||||||
>
|
>
|
||||||
|
|
Reference in New Issue