fix (client): gray out disabled boost button (#10960)
This commit is contained in:
parent
5cae588c74
commit
08e009ebad
2 changed files with 6 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
:note="note"
|
||||
:count="note.renoteCount"
|
||||
:detailed-view="detailedView"
|
||||
:disabled="note.scheduledAt != null"
|
||||
/>
|
||||
<XStarButtonNoEmoji
|
||||
v-if="!enableEmojiReactions"
|
||||
|
|
Loading…
Reference in a new issue