select first hosted cgw by default
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
71175a5cd5
commit
00ea472fb9
|
@ -156,10 +156,11 @@ export class AuthenticatorMobileStageForm extends ModelForm<AuthenticatorMobileS
|
|||
this.showCustomCGWInput = !hostedCGWs.has(ev.detail.value);
|
||||
}}
|
||||
.options=${[
|
||||
...Array.from(hostedCGWs, ([endpoint, label]) => {
|
||||
...Array.from(hostedCGWs, ([endpoint, label], idx) => {
|
||||
return {
|
||||
label: label,
|
||||
value: endpoint,
|
||||
default: idx === 0,
|
||||
};
|
||||
}),
|
||||
{
|
||||
|
|
Reference in New Issue