mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user