From 41d372a340fc0ac2cbda77022f63e3f29ff81f62 Mon Sep 17 00:00:00 2001 From: Jens L Date: Fri, 27 Oct 2023 16:28:18 +0200 Subject: [PATCH] web/admin: fix @change handler for ak-radio elements (#7348) Signed-off-by: Jens Langhammer --- .../oauth/ak-application-wizard-authentication-by-oauth.ts | 4 ++-- web/src/admin/events/TransportForm.ts | 4 ++-- web/src/admin/providers/oauth2/OAuth2ProviderForm.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts index 44c71b0a3..62893a6af 100644 --- a/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts +++ b/web/src/admin/applications/wizard/methods/oauth/ak-application-wizard-authentication-by-oauth.ts @@ -114,8 +114,8 @@ export class ApplicationWizardAuthenticationByOauth extends BaseProviderPanel { label=${msg("Client type")} .value=${provider?.clientType} required - @change=${(ev: CustomEvent) => { - this.showClientSecret = ev.detail !== ClientTypeEnum.Public; + @change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => { + this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public; }} .options=${clientTypeOptions} > diff --git a/web/src/admin/events/TransportForm.ts b/web/src/admin/events/TransportForm.ts index 46fce43cb..1554d7007 100644 --- a/web/src/admin/events/TransportForm.ts +++ b/web/src/admin/events/TransportForm.ts @@ -78,8 +78,8 @@ export class TransportForm extends ModelForm { ) => { - this.onModeChange(ev.detail); + @change=${(ev: CustomEvent<{ value: NotificationTransportModeEnum }>) => { + this.onModeChange(ev.detail.value); }} .options=${[ { diff --git a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts index 95bb9fdae..c98ae860f 100644 --- a/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/admin/providers/oauth2/OAuth2ProviderForm.ts @@ -210,8 +210,8 @@ export class OAuth2ProviderFormPage extends ModelForm { label=${msg("Client type")} .value=${provider?.clientType} required - @change=${(ev: CustomEvent) => { - this.showClientSecret = ev.detail !== ClientTypeEnum.Public; + @change=${(ev: CustomEvent<{ value: ClientTypeEnum }>) => { + this.showClientSecret = ev.detail.value !== ClientTypeEnum.Public; }} .options=${clientTypeOptions} >