Fix relay auth privacy toggle (#240)
Co-authored-by: Shreyas2004wagh <shreyaswagh2004@gmail.com> Co-committed-by: Shreyas2004wagh <shreyaswagh2004@gmail.com>
This commit is contained in:
parent
53954aae89
commit
d74f142cdd
1 changed files with 5 additions and 3 deletions
|
|
@ -12,8 +12,10 @@
|
|||
settings = {...$userSettingsValues}
|
||||
}
|
||||
|
||||
const onAuthModeChange = (e: any) => {
|
||||
settings.auth_mode = e.target.checked ? RelayAuthMode.Aggressive : RelayAuthMode.Conservative
|
||||
const onAuthModeChange = (e: Event) => {
|
||||
const target = e.currentTarget as HTMLInputElement
|
||||
|
||||
settings.relay_auth = target.checked ? RelayAuthMode.Aggressive : RelayAuthMode.Conservative
|
||||
}
|
||||
|
||||
const onsubmit = preventDefault(async () => {
|
||||
|
|
@ -40,7 +42,7 @@
|
|||
type="checkbox"
|
||||
class="toggle toggle-primary"
|
||||
onchange={onAuthModeChange}
|
||||
checked={settings.auth_mode === RelayAuthMode.Aggressive} />
|
||||
checked={settings.relay_auth === RelayAuthMode.Aggressive} />
|
||||
{/snippet}
|
||||
{#snippet info()}
|
||||
<p>Controls whether {PLATFORM_NAME} will identify you to relays not in your lists.</p>
|
||||
|
|
|
|||
Loading…
Reference in a new issue