fix: hide actions at self profile

zio/stable
三咲智子 2022-11-26 02:24:46 +08:00
parent 9df9c06f64
commit 373697619f
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 22 additions and 18 deletions

View File

@ -6,6 +6,8 @@ const { account } = defineProps<{
}>()
let relationship = $(useRelationship(account))
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
const mute = async () => {
// TODO: Add confirmation
@ -52,6 +54,7 @@ const unblock = async () => {
</CommonDropdownItem>
</NuxtLink>
<template v-if="!isSelf">
<CommonDropdownItem icon="i-ri:at-line" @click="mentionUser(account)">
Mention @{{ account.acct }}
</CommonDropdownItem>
@ -73,5 +76,6 @@ const unblock = async () => {
Unblock @{{ account.acct }}
</CommonDropdownItem>
</template>
</template>
</CommonDropdown>
</template>