fix (client): gray out disabled boost button (#10960)

This commit is contained in:
naskya 2024-07-27 19:06:00 +09:00
parent 5cae588c74
commit 08e009ebad
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
2 changed files with 6 additions and 3 deletions

View file

@ -45,8 +45,9 @@ const buttonRef = ref<HTMLElement>();
const canRenote = computed(
() =>
["public", "home"].includes(props.note.visibility) ||
props.note.userId === me?.id,
props.note.scheduledAt == null &&
(["public", "home"].includes(props.note.visibility) ||
props.note.userId === me?.id),
);
useTooltip(buttonRef, async (showing) => {
@ -282,5 +283,8 @@ defineExpose({
opacity: 1 !important;
font-weight: 700;
}
&:disabled {
opacity: 0.3 !important;
}
}
</style>

View file

@ -22,7 +22,6 @@
:note="note"
:count="note.renoteCount"
:detailed-view="detailedView"
:disabled="note.scheduledAt != null"
/>
<XStarButtonNoEmoji
v-if="!enableEmojiReactions"