Compare commits
2 Commits
e37da856e2
...
4ca5eb891c
| Author | SHA1 | Date | |
|---|---|---|---|
| 4ca5eb891c | |||
| d74f142cdd |
@@ -12,11 +12,11 @@
|
|||||||
<div class="flex flex-col gap-2 {props.class}">
|
<div class="flex flex-col gap-2 {props.class}">
|
||||||
<div class="flex items-center justify-between w-full gap-2">
|
<div class="flex items-center justify-between w-full gap-2">
|
||||||
{#if props.label}
|
{#if props.label}
|
||||||
<label class="flex items-center gap-2 max-w-[80%] md:max-w-none">
|
<label class="flex items-center gap-2 min-w-[30%] max-w-[80%] md:max-w-none">
|
||||||
{@render props.label()}
|
{@render props.label()}
|
||||||
</label>
|
</label>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="flex items-center gap-2 justify-end shrink-0">
|
<div class="flex items-center gap-2 justify-end grow">
|
||||||
{#if props.input}
|
{#if props.input}
|
||||||
{@render props.input()}
|
{@render props.input()}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -12,8 +12,10 @@
|
|||||||
settings = {...$userSettingsValues}
|
settings = {...$userSettingsValues}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onAuthModeChange = (e: any) => {
|
const onAuthModeChange = (e: Event) => {
|
||||||
settings.auth_mode = e.target.checked ? RelayAuthMode.Aggressive : RelayAuthMode.Conservative
|
const target = e.currentTarget as HTMLInputElement
|
||||||
|
|
||||||
|
settings.relay_auth = target.checked ? RelayAuthMode.Aggressive : RelayAuthMode.Conservative
|
||||||
}
|
}
|
||||||
|
|
||||||
const onsubmit = preventDefault(async () => {
|
const onsubmit = preventDefault(async () => {
|
||||||
@@ -40,7 +42,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
class="toggle toggle-primary"
|
class="toggle toggle-primary"
|
||||||
onchange={onAuthModeChange}
|
onchange={onAuthModeChange}
|
||||||
checked={settings.auth_mode === RelayAuthMode.Aggressive} />
|
checked={settings.relay_auth === RelayAuthMode.Aggressive} />
|
||||||
{/snippet}
|
{/snippet}
|
||||||
{#snippet info()}
|
{#snippet info()}
|
||||||
<p>Controls whether {PLATFORM_NAME} will identify you to relays not in your lists.</p>
|
<p>Controls whether {PLATFORM_NAME} will identify you to relays not in your lists.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user