Don't show loader when clicking copy button

To prevent any kind of flickering. It should just work in most cases.
This commit is contained in:
Rūdolfs Ošiņš
2024-03-26 17:03:03 +01:00
parent 33f7410d6c
commit 55d64af8db
+3 -12
View File
@@ -8,7 +8,6 @@
import Button from "@app/components/Button.svelte";
import IconSmall from "@app/components/IconSmall.svelte";
import Loading from "@app/components/Loading.svelte";
import Popover from "@app/components/Popover.svelte";
import ShareButton from "./Header/ShareButton.svelte";
@@ -60,16 +59,8 @@
<ShareButton slot="popover" />
</Popover>
{:else}
<Button
styleMinWidth="5.75rem"
variant="outline"
size="regular"
on:click={copy}>
{#if loading}
<Loading small noDelay />
{:else}
<IconSmall name={shareIcon} />
Copy link
{/if}
<Button variant="outline" size="regular" on:click={copy}>
<IconSmall name={shareIcon} />
Copy link
</Button>
{/if}