fix: fix type errors
This commit is contained in:
parent
9fb52702e5
commit
ce418d5749
2 changed files with 5 additions and 7 deletions
|
|
@ -227,7 +227,7 @@ function showFavoritedAndBoostedBy() {
|
||||||
|
|
||||||
<CommonDropdownItem
|
<CommonDropdownItem
|
||||||
is="button"
|
is="button"
|
||||||
v-if="currentUser && (status.account.id === currentUser.account.id || status.mentions.some(m => m.id === currentUser!.account.id))"
|
v-if="currentUser && (status.account.id === currentUser.account.id || status.mentions.some((m: mastodon.v1.StatusMention) => m.id === currentUser!.account.id))"
|
||||||
:text="status.muted ? $t('menu.unmute_conversation') : $t('menu.mute_conversation')"
|
:text="status.muted ? $t('menu.unmute_conversation') : $t('menu.mute_conversation')"
|
||||||
:icon="status.muted ? 'i-ri:eye-line' : 'i-ri:eye-off-line'"
|
:icon="status.muted ? 'i-ri:eye-line' : 'i-ri:eye-off-line'"
|
||||||
:command="command"
|
:command="command"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,13 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import type { mastodon } from 'masto'
|
||||||
import { getEmojiAttributes } from '~/config/emojis'
|
import { getEmojiAttributes } from '~/config/emojis'
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
status: Status
|
status: mastodon.v1.Status
|
||||||
details?: boolean
|
details?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const {
|
const { status }: { status: mastodon.v1.Status } = useStatusActions(props)
|
||||||
status,
|
|
||||||
} = useStatusActions(props)
|
|
||||||
|
|
||||||
function isCustomEmoji(emoji: EmojiReaction) {
|
function isCustomEmoji(emoji: EmojiReaction) {
|
||||||
return !!emoji.staticUrl
|
return !!emoji.staticUrl
|
||||||
}
|
}
|
||||||
|
|
@ -18,7 +16,7 @@ function isCustomEmoji(emoji: EmojiReaction) {
|
||||||
<template>
|
<template>
|
||||||
<div flex flex-wrap gap-1 class="status-actions">
|
<div flex flex-wrap gap-1 class="status-actions">
|
||||||
<button
|
<button
|
||||||
v-for="(emoji, i) in status?.emojiReactions ?? []"
|
v-for="(emoji, i) in status.emojiReactions ?? []"
|
||||||
:key="i"
|
:key="i"
|
||||||
flex gap-1 p="block-1 inline-2" text-secondary btn-base rounded-1
|
flex gap-1 p="block-1 inline-2" text-secondary btn-base rounded-1
|
||||||
:class="emoji.me ? 'b-1 b-primary bg-primary-fade' : 'b b-white bg-gray-1 hover:bg-gray-1 hover:b-gray'"
|
:class="emoji.me ? 'b-1 b-primary bg-primary-fade' : 'b b-white bg-gray-1 hover:bg-gray-1 hover:b-gray'"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue