forked from Mirrors/elk
fix: hide actions at self profile
This commit is contained in:
parent
9df9c06f64
commit
373697619f
1 changed files with 22 additions and 18 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue