web/Omnibox: don't bind the download button to a variable

This commit is contained in:
wukko 2025-04-28 22:02:52 +06:00
parent 78f23da0a5
commit 04d1a2f96f
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -1,10 +1,10 @@
<script lang="ts">
import env, { officialApiURL } from "$lib/env";
import { tick } from "svelte";
import { page } from "$app/stores";
import { goto } from "$app/navigation";
import { browser } from "$app/environment";
import { SvelteComponent, tick } from "svelte";
import { t } from "$lib/i18n/translations";
@ -33,10 +33,8 @@
import IconClipboard from "$components/icons/Clipboard.svelte";
let linkInput: Optional<HTMLInputElement>;
let downloadButton: SvelteComponent;
let isFocused = false;
let isDisabled = false;
let isLoading = false;
@ -173,7 +171,6 @@
<ClearButton click={() => ($link = "")} />
<DownloadButton
url={$link}
bind:this={downloadButton}
bind:disabled={isDisabled}
bind:loading={isLoading}
/>