web: minor code formatting issue.
This commit is contained in:
parent
df16dc3088
commit
6018ffe13d
|
@ -127,20 +127,16 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderModeSelector(): TemplateResult {
|
renderModeSelector(): TemplateResult {
|
||||||
|
const setMode = (ev: CustomEvent<{ value: ProxyMode }>) => {
|
||||||
|
this.mode = ev.detail.value;
|
||||||
|
};
|
||||||
|
|
||||||
|
// prettier-ignore
|
||||||
return html`
|
return html`
|
||||||
<ak-toggle-group
|
<ak-toggle-group value=${this.mode} @ak-toggle=${setMode}>
|
||||||
value=${this.mode}
|
|
||||||
@ak-toggle=${(ev: CustomEvent<{ value: ProxyMode }>) => {
|
|
||||||
this.mode = ev.detail.value;
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<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>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue