Skip to content

Commit 429ceef

Browse files
committed
faet: disable button during rendering
1 parent bd06e28 commit 429ceef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/Package/ShareModal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ function handleCopyLink() {
148148
<div class="flex items-center gap-2">
149149
<ButtonBase
150150
:classicon="linkCopied ? 'i-lucide:check text-green-500' : 'i-lucide:link'"
151+
:disabled="!imgLoaded"
151152
@click="handleCopyLink"
152153
>
153154
{{ linkCopied ? 'Copied!' : 'Copy link' }}
@@ -175,7 +176,7 @@ function handleCopyLink() {
175176
</Transition>
176177
</div>
177178

178-
<ButtonBase variant="primary" classicon="i-lucide:download" @click="downloadCard">
179+
<ButtonBase variant="primary" classicon="i-lucide:download" :disabled="!imgLoaded" @click="downloadCard">
179180
Download PNG
180181
</ButtonBase>
181182
</div>

0 commit comments

Comments
 (0)