From 5df414e0c383ef8a756e3398d2e0b9e4e3793e0b Mon Sep 17 00:00:00 2001 From: Alec Armbruster <35377827+alectrocute@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:48:42 -0700 Subject: [PATCH] remove icon --- web/src/routes/settings/debug/+page.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/routes/settings/debug/+page.svelte b/web/src/routes/settings/debug/+page.svelte index 1e801cb4..df35d9d3 100644 --- a/web/src/routes/settings/debug/+page.svelte +++ b/web/src/routes/settings/debug/+page.svelte @@ -3,7 +3,6 @@ import { goto } from "$app/navigation"; import ActionButton from "$components/buttons/ActionButton.svelte"; - import CopyIcon from "$components/misc/CopyIcon.svelte"; import { t } from "$lib/i18n/translations"; import { copyURL } from "$lib/download"; @@ -22,12 +21,12 @@ { title: $t("settings.advanced.debug.version"), data: $version }, ]; - let lastCopiedSection = -1; + let lastCopiedSection: number | null = null; let lastCopiedSectionResetTimeout: ReturnType; - $: if (lastCopiedSection) { + $: if (lastCopiedSection !== null) { lastCopiedSectionResetTimeout = setTimeout(() => { - lastCopiedSection = -1; + lastCopiedSection = null; }, 1500); } @@ -42,9 +41,11 @@
{#each sections as { title, data }, i}

{title}:

+
{JSON.stringify(data, null, 2)}
+ { @@ -53,7 +54,6 @@ copyURL(JSON.stringify(data, null, 2)); }} > - {lastCopiedSection === i ? $t("button.copied") : $t("button.copy")}