From 92008d301236acb9571f06c4cb3d3d3a39e8fb85 Mon Sep 17 00:00:00 2001 From: wukko Date: Fri, 20 Sep 2024 15:22:29 +0600 Subject: [PATCH] web/Omnibox: hide the clear button if request is processing --- web/src/components/save/Omnibox.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index c8ad692d..dfbd560e 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -35,9 +35,10 @@ let downloadButton: SvelteComponent; let isFocused = false; + let isDisabled = false; - let isBotCheckOngoing = false; let isLoading = false; + let isBotCheckOngoing = false; const validLink = (url: string) => { try { @@ -164,7 +165,7 @@ disabled={isDisabled} /> - {#if $link} + {#if $link && !isLoading} ($link = "")} /> {/if} {#if validLink($link)}