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(
|
const canRenote = computed(
|
||||||
() =>
|
() =>
|
||||||
["public", "home"].includes(props.note.visibility) ||
|
props.note.scheduledAt == null &&
|
||||||
props.note.userId === me?.id,
|
(["public", "home"].includes(props.note.visibility) ||
|
||||||
|
props.note.userId === me?.id),
|
||||||
);
|
);
|
||||||
|
|
||||||
useTooltip(buttonRef, async (showing) => {
|
useTooltip(buttonRef, async (showing) => {
|
||||||
|
@ -282,5 +283,8 @@ defineExpose({
|
||||||
opacity: 1 !important;
|
opacity: 1 !important;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
&:disabled {
|
||||||
|
opacity: 0.3 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
:note="note"
|
:note="note"
|
||||||
:count="note.renoteCount"
|
:count="note.renoteCount"
|
||||||
:detailed-view="detailedView"
|
:detailed-view="detailedView"
|
||||||
:disabled="note.scheduledAt != null"
|
|
||||||
/>
|
/>
|
||||||
<XStarButtonNoEmoji
|
<XStarButtonNoEmoji
|
||||||
v-if="!enableEmojiReactions"
|
v-if="!enableEmojiReactions"
|
||||||
|
|
Loading…
Reference in a new issue