web: minor code formatting issue.

This commit is contained in:
Ken Sternberg 2023-08-03 14:53:05 -07:00
parent df16dc3088
commit 6018ffe13d

View file

@ -127,20 +127,16 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
} }
renderModeSelector(): TemplateResult { renderModeSelector(): TemplateResult {
return html` const setMode = (ev: CustomEvent<{ value: ProxyMode }>) => {
<ak-toggle-group
value=${this.mode}
@ak-toggle=${(ev: CustomEvent<{ value: ProxyMode }>) => {
this.mode = ev.detail.value; this.mode = ev.detail.value;
}} };
>
// prettier-ignore
return html`
<ak-toggle-group value=${this.mode} @ak-toggle=${setMode}>
<option value=${ProxyMode.Proxy}>${msg("Proxy")}</option> <option value=${ProxyMode.Proxy}>${msg("Proxy")}</option>
<option value=${ProxyMode.ForwardSingle}> <option value=${ProxyMode.ForwardSingle}>${msg("Forward auth (single application)")}</option>
${msg("Forward auth (single application)")} <option value=${ProxyMode.ForwardDomain}>${msg("Forward auth (domain level)")}</option>
</option>
<option value=${ProxyMode.ForwardDomain}>
${msg("Forward auth (domain level)")}
</option>
</ak-toggle-group> </ak-toggle-group>
`; `;
} }