web/Omnibox: hide the clear button if request is processing
This commit is contained in:
@@ -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)}
|
||||||
|
|||||||
Reference in New Issue
Block a user