best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/omnibox: disable input area when processing & reduce timeout
wukko49973eceb123
diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelteindex b2138550..cfff9f83 100644--- a/web/src/components/save/Omnibox.svelte+++ b/web/src/components/save/Omnibox.svelte@@ -138,13 +138,18 @@placeholder={$t("save.input.placeholder")}aria-label={$t("a11y.save.linkArea")}data-form-type="other"+ disabled={isDisabled}/>{#if $link}<ClearButton click={() => ($link = "")} />{/if}{#if validLink($link)}- <DownloadButton url={$link} bind:this={downloadButton} bind:isDisabled={isDisabled} />+ <DownloadButton+ url={$link}+ bind:this={downloadButton}+ bind:disabled={isDisabled}+ />{/if}</div>diff --git a/web/src/components/save/buttons/DownloadButton.svelte b/web/src/components/save/buttons/DownloadButton.svelteindex 3d04b804..c2a26a49 100644--- a/web/src/components/save/buttons/DownloadButton.svelte+++ b/web/src/components/save/buttons/DownloadButton.svelte@@ -54,7 +54,7 @@// transition back to idle after some period of time.const final: DownloadButtonState[] = ['done', 'error'];if (final.includes(state)) {- setTimeout(() => changeDownloadButton("idle"), 2500);+ setTimeout(() => changeDownloadButton("idle"), 1500);}};