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);
|
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,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
|
|
Reference in New Issue