diff --git a/src/lib/views/Settings.svelte b/src/lib/views/Settings.svelte index d9d10f8..0acb278 100644 --- a/src/lib/views/Settings.svelte +++ b/src/lib/views/Settings.svelte @@ -9,6 +9,17 @@ import { open } from "@tauri-apps/plugin-dialog"; import type { BackendId, SyncKind, SyncTargetConfig } from "../api"; import { trapFocus } from "../actions/trapFocus"; + import { + X, + Check, + AlertTriangle, + Mic, + Cpu, + HardDrive, + CalendarDays, + UploadCloud, + ShieldCheck, + } from "@lucide/svelte"; let { onClose }: { onClose: () => void } = $props(); @@ -49,7 +60,7 @@ return Math.round((p.received / p.total) * 100); } let showConsent = $state(false); - let testResult = $state(null); + let testResult = $state<{ ok: boolean; message: string } | null>(null); onMount(() => { settings.load(); @@ -113,7 +124,7 @@ } async function testConnection() { const r = await settings.test(form); - testResult = (r.ok ? "✓ " : "✗ ") + r.message; + testResult = { ok: r.ok, message: r.message }; } async function addTarget() { await settings.addTarget(form); @@ -138,24 +149,28 @@
Settings - +
{#if settings.backendStub && section === "sync"} @@ -449,11 +464,20 @@ - {#if testResult}{testResult}{/if} + {#if testResult} + + {#if testResult.ok} + {/if} {:else}
@@ -494,7 +518,10 @@

Egress allowlist

{#if settings.privacy.allowlistedHosts.length === 0} -

✓ No hosts are allowlisted — WA makes no content egress.

+

+

{:else}