select first hosted cgw by default

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2024-01-03 19:04:46 +01:00
parent 71175a5cd5
commit 00ea472fb9
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -156,10 +156,11 @@ export class AuthenticatorMobileStageForm extends ModelForm<AuthenticatorMobileS
this.showCustomCGWInput = !hostedCGWs.has(ev.detail.value); this.showCustomCGWInput = !hostedCGWs.has(ev.detail.value);
}} }}
.options=${[ .options=${[
...Array.from(hostedCGWs, ([endpoint, label]) => { ...Array.from(hostedCGWs, ([endpoint, label], idx) => {
return { return {
label: label, label: label,
value: endpoint, value: endpoint,
default: idx === 0,
}; };
}), }),
{ {