mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +02:00
web/Omnibox: hide the clear button if request is processing
This commit is contained in:
@ -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}
|
||||
<ClearButton click={() => ($link = "")} />
|
||||
{/if}
|
||||
{#if validLink($link)}
|
||||
|
Reference in New Issue
Block a user