mirror of https://github.com/VERT-sh/VERT.git
fix: only hide plausible opt-in when privacy mode is enabled
This commit is contained in:
parent
2f604a5c14
commit
544400c7f4
|
|
@ -15,6 +15,7 @@
|
|||
import { onMount } from "svelte";
|
||||
import { error } from "$lib/logger";
|
||||
import { ToastManager } from "$lib/toast/index.svelte";
|
||||
import { DISABLE_ALL_EXTERNAL_REQUESTS } from "$lib/consts";
|
||||
|
||||
const { settings = $bindable() }: { settings: ISettings } = $props();
|
||||
|
||||
|
|
@ -81,6 +82,7 @@
|
|||
{m["settings.privacy.title"]()}
|
||||
</h2>
|
||||
<div class="flex flex-col gap-8">
|
||||
{#if !DISABLE_ALL_EXTERNAL_REQUESTS}
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-base font-bold">
|
||||
|
|
@ -119,12 +121,16 @@
|
|||
? ''
|
||||
: 'selected'} flex-1 p-4 rounded-lg text-black dynadark:text-white flex items-center justify-center"
|
||||
>
|
||||
<PauseIcon size="24" class="inline-block mr-2" />
|
||||
<PauseIcon
|
||||
size="24"
|
||||
class="inline-block mr-2"
|
||||
/>
|
||||
{m["settings.privacy.opt_out"]()}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex flex-col gap-2">
|
||||
<p class="text-base font-bold">
|
||||
|
|
|
|||
|
|
@ -66,6 +66,8 @@
|
|||
<Settings.Conversion bind:settings />
|
||||
{#if !DISABLE_ALL_EXTERNAL_REQUESTS}
|
||||
<Settings.Vertd bind:settings />
|
||||
{:else if PUB_PLAUSIBLE_URL}
|
||||
<Settings.Privacy bind:settings />
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue