From 471293ba25247155de39c77b30c8aef84c147b85 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 4 Jan 2023 22:33:30 +0100 Subject: [PATCH] web/admin: migrate webauthn forms to radio Signed-off-by: Jens Langhammer --- .../AuthenticatorValidateStageForm.ts | 43 +++--- .../AuthenticateWebAuthnStageForm.ts | 126 ++++++++---------- 2 files changed, 78 insertions(+), 91 deletions(-) diff --git a/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts b/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts index 4c83705bb..393c410a5 100644 --- a/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts +++ b/web/src/admin/stages/authenticator_validate/AuthenticatorValidateStageForm.ts @@ -1,5 +1,6 @@ import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import "@goauthentik/elements/forms/FormGroup"; +import "@goauthentik/elements/forms/Radio"; import "@goauthentik/elements/forms/HorizontalFormElement"; import { ModelForm } from "@goauthentik/elements/forms/ModelForm"; import "@goauthentik/elements/utils/TimeDeltaHelp"; @@ -188,29 +189,25 @@ export class AuthenticatorValidateStageForm extends ModelForm - + + ${this.showConfigurationStages ? html` diff --git a/web/src/admin/stages/authenticator_webauthn/AuthenticateWebAuthnStageForm.ts b/web/src/admin/stages/authenticator_webauthn/AuthenticateWebAuthnStageForm.ts index f24bf5e4a..b481bd4a7 100644 --- a/web/src/admin/stages/authenticator_webauthn/AuthenticateWebAuthnStageForm.ts +++ b/web/src/admin/stages/authenticator_webauthn/AuthenticateWebAuthnStageForm.ts @@ -1,6 +1,7 @@ import { DEFAULT_CONFIG } from "@goauthentik/common/api/config"; import "@goauthentik/elements/forms/HorizontalFormElement"; import { ModelForm } from "@goauthentik/elements/forms/ModelForm"; +import "@goauthentik/elements/forms/Radio"; import "@goauthentik/elements/forms/SearchSelect"; import { t } from "@lingui/macro"; @@ -74,86 +75,75 @@ export class AuthenticateWebAuthnStageForm extends ModelForm - + + - + + - + +