mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-29 22:14:26 +02:00
web/Omnibox: don't bind the download button to a variable
This commit is contained in:
parent
78f23da0a5
commit
04d1a2f96f
@ -1,10 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import env, { officialApiURL } from "$lib/env";
|
import env, { officialApiURL } from "$lib/env";
|
||||||
|
|
||||||
|
import { tick } from "svelte";
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/stores";
|
||||||
import { goto } from "$app/navigation";
|
import { goto } from "$app/navigation";
|
||||||
import { browser } from "$app/environment";
|
import { browser } from "$app/environment";
|
||||||
import { SvelteComponent, tick } from "svelte";
|
|
||||||
|
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
|
|
||||||
@ -33,10 +33,8 @@
|
|||||||
import IconClipboard from "$components/icons/Clipboard.svelte";
|
import IconClipboard from "$components/icons/Clipboard.svelte";
|
||||||
|
|
||||||
let linkInput: Optional<HTMLInputElement>;
|
let linkInput: Optional<HTMLInputElement>;
|
||||||
let downloadButton: SvelteComponent;
|
|
||||||
|
|
||||||
let isFocused = false;
|
let isFocused = false;
|
||||||
|
|
||||||
let isDisabled = false;
|
let isDisabled = false;
|
||||||
let isLoading = false;
|
let isLoading = false;
|
||||||
|
|
||||||
@ -173,7 +171,6 @@
|
|||||||
<ClearButton click={() => ($link = "")} />
|
<ClearButton click={() => ($link = "")} />
|
||||||
<DownloadButton
|
<DownloadButton
|
||||||
url={$link}
|
url={$link}
|
||||||
bind:this={downloadButton}
|
|
||||||
bind:disabled={isDisabled}
|
bind:disabled={isDisabled}
|
||||||
bind:loading={isLoading}
|
bind:loading={isLoading}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user