mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/Omnibox: hide the clear button if request is processing
This commit is contained in:
parent
c0bb637480
commit
92008d3012
1 changed files with 3 additions and 2 deletions
|
@ -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)}
|
||||
|
|
Loading…
Reference in a new issue