Skip to content

Commit 2703c39

Browse files
committed
feat: tooltip displaying loading while waiting for likes
1 parent 54cc95f commit 2703c39

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/pages/package/[[org]]/[name].vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,11 @@ onKeyStroke(
620620
<!-- Package likes -->
621621
<TooltipApp
622622
:text="
623-
likesData?.userHasLiked ? $t('package.likes.unlike') : $t('package.likes.like')
623+
isLoadingLikeData
624+
? $t('common.loading')
625+
: likesData?.userHasLiked
626+
? $t('package.likes.unlike')
627+
: $t('package.likes.like')
624628
"
625629
position="bottom"
626630
class="items-center"

0 commit comments

Comments
 (0)