mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +00:00
remove icon
This commit is contained in:
parent
39c269d70c
commit
5df414e0c3
@ -3,7 +3,6 @@
|
|||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
|
|
||||||
import ActionButton from "$components/buttons/ActionButton.svelte";
|
import ActionButton from "$components/buttons/ActionButton.svelte";
|
||||||
import CopyIcon from "$components/misc/CopyIcon.svelte";
|
|
||||||
|
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
import { copyURL } from "$lib/download";
|
import { copyURL } from "$lib/download";
|
||||||
@ -22,12 +21,12 @@
|
|||||||
{ title: $t("settings.advanced.debug.version"), data: $version },
|
{ title: $t("settings.advanced.debug.version"), data: $version },
|
||||||
];
|
];
|
||||||
|
|
||||||
let lastCopiedSection = -1;
|
let lastCopiedSection: number | null = null;
|
||||||
let lastCopiedSectionResetTimeout: ReturnType<typeof setTimeout>;
|
let lastCopiedSectionResetTimeout: ReturnType<typeof setTimeout>;
|
||||||
|
|
||||||
$: if (lastCopiedSection) {
|
$: if (lastCopiedSection !== null) {
|
||||||
lastCopiedSectionResetTimeout = setTimeout(() => {
|
lastCopiedSectionResetTimeout = setTimeout(() => {
|
||||||
lastCopiedSection = -1;
|
lastCopiedSection = null;
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,9 +41,11 @@
|
|||||||
<div id="advanced-page">
|
<div id="advanced-page">
|
||||||
{#each sections as { title, data }, i}
|
{#each sections as { title, data }, i}
|
||||||
<h3>{title}:</h3>
|
<h3>{title}:</h3>
|
||||||
|
|
||||||
<div class="message-container subtext">
|
<div class="message-container subtext">
|
||||||
{JSON.stringify(data, null, 2)}
|
{JSON.stringify(data, null, 2)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ActionButton
|
<ActionButton
|
||||||
id="copy-button"
|
id="copy-button"
|
||||||
click={() => {
|
click={() => {
|
||||||
@ -53,7 +54,6 @@
|
|||||||
copyURL(JSON.stringify(data, null, 2));
|
copyURL(JSON.stringify(data, null, 2));
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CopyIcon />
|
|
||||||
{lastCopiedSection === i
|
{lastCopiedSection === i
|
||||||
? $t("button.copied")
|
? $t("button.copied")
|
||||||
: $t("button.copy")}
|
: $t("button.copy")}
|
||||||
|
Loading…
Reference in New Issue
Block a user