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 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)}
|
||||||
|
|
Loading…
Reference in a new issue