web/Omnibox: hide the clear button if request is processing

This commit is contained in:
wukko 2024-09-20 15:22:29 +06:00
parent c0bb637480
commit 92008d3012
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -35,9 +35,10 @@
let downloadButton: SvelteComponent; let downloadButton: SvelteComponent;
let isFocused = false; let isFocused = false;
let isDisabled = false; let isDisabled = false;
let isBotCheckOngoing = false;
let isLoading = false; let isLoading = false;
let isBotCheckOngoing = false;
const validLink = (url: string) => { const validLink = (url: string) => {
try { try {
@ -164,7 +165,7 @@
disabled={isDisabled} disabled={isDisabled}
/> />
{#if $link} {#if $link && !isLoading}
<ClearButton click={() => ($link = "")} /> <ClearButton click={() => ($link = "")} />
{/if} {/if}
{#if validLink($link)} {#if validLink($link)}