From 00ea472fb9dcb6cd1af082cb44014892f992a735 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 3 Jan 2024 19:04:46 +0100 Subject: [PATCH] select first hosted cgw by default Signed-off-by: Jens Langhammer --- .../authenticator_mobile/AuthenticatorMobileStageForm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/admin/stages/authenticator_mobile/AuthenticatorMobileStageForm.ts b/web/src/admin/stages/authenticator_mobile/AuthenticatorMobileStageForm.ts index bf9589ede..6ca309096 100644 --- a/web/src/admin/stages/authenticator_mobile/AuthenticatorMobileStageForm.ts +++ b/web/src/admin/stages/authenticator_mobile/AuthenticatorMobileStageForm.ts @@ -156,10 +156,11 @@ export class AuthenticatorMobileStageForm extends ModelForm { + ...Array.from(hostedCGWs, ([endpoint, label], idx) => { return { label: label, value: endpoint, + default: idx === 0, }; }), {