Skip to content

Commit

Permalink
feat: 💫 Implement indicators for when a note has already been liked o…
Browse files Browse the repository at this point in the history
…r boosted
  • Loading branch information
CPlusPatch committed Dec 25, 2024
1 parent 049f75c commit 82a7b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/notes/actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<Reply class="size-5 text-primary" />
{{ numberFormat(replyCount) }}
</Button>
<Button variant="ghost" @click="liked ? unlike() : like()" :title="liked ? m.vexed_fluffy_clownfish_dance() : m.royal_close_samuel_scold()" :disabled="!identity">
<Button variant="ghost" @click="liked ? unlike() : like()" :title="liked ? m.vexed_fluffy_clownfish_dance() : m.royal_close_samuel_scold()" :disabled="!identity" :class="liked && '*:fill-red-600 *:text-red-600'">
<Heart class="size-5 text-primary" />
{{ numberFormat(likeCount) }}
</Button>
<Button variant="ghost" @click="reblogged ? unreblog() : reblog()" :title="reblogged ? m.lime_neat_ox_stab() : m.aware_helpful_marlin_drop()" :disabled="!identity">
<Button variant="ghost" @click="reblogged ? unreblog() : reblog()" :title="reblogged ? m.lime_neat_ox_stab() : m.aware_helpful_marlin_drop()" :disabled="!identity" :class="reblogged && '*:text-green-600'">
<Repeat class="size-5 text-primary" />
{{ numberFormat(reblogCount) }}
</Button>
Expand Down

0 comments on commit 82a7b66

Please sign in to comment.