mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
fix: 🐛 Properly handle remote reactions
Some checks failed
Some checks failed
This commit is contained in:
parent
3749ea86e2
commit
8f50ce8b44
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<HoverCard @update:open="(open) => open && accounts === null && refreshReactions()">
|
<HoverCard @update:open="(open) => open && accounts === null && refreshReactions()">
|
||||||
<HoverCardTrigger as-child>
|
<HoverCardTrigger as-child>
|
||||||
<Button @click="reaction.me ? unreact() : react()" :variant="reaction.me ? 'secondary' : 'outline'" size="sm" class="gap-2">
|
<Button @click="reaction.me ? !reaction.remote && unreact() : !reaction.remote && react()" :variant="reaction.me ? 'secondary' : reaction.remote ? 'ghost' : 'outline'" size="sm" class="gap-2">
|
||||||
<img v-if="emoji" :src="emoji.url" :alt="emoji.shortcode"
|
<img v-if="emoji" :src="emoji.url" :alt="emoji.shortcode"
|
||||||
class="h-[1lh] align-middle inline not-prose" />
|
class="h-[1lh] align-middle inline not-prose" />
|
||||||
<span v-else>
|
<span v-else>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue