fix: hide actions at self profile
parent
9df9c06f64
commit
373697619f
|
@ -6,6 +6,8 @@ const { account } = defineProps<{
|
||||||
}>()
|
}>()
|
||||||
let relationship = $(useRelationship(account))
|
let relationship = $(useRelationship(account))
|
||||||
|
|
||||||
|
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||||
|
|
||||||
const mute = async () => {
|
const mute = async () => {
|
||||||
// TODO: Add confirmation
|
// TODO: Add confirmation
|
||||||
|
|
||||||
|
@ -52,6 +54,7 @@ const unblock = async () => {
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
|
<template v-if="!isSelf">
|
||||||
<CommonDropdownItem icon="i-ri:at-line" @click="mentionUser(account)">
|
<CommonDropdownItem icon="i-ri:at-line" @click="mentionUser(account)">
|
||||||
Mention @{{ account.acct }}
|
Mention @{{ account.acct }}
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
|
@ -73,5 +76,6 @@ const unblock = async () => {
|
||||||
Unblock @{{ account.acct }}
|
Unblock @{{ account.acct }}
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</CommonDropdown>
|
</CommonDropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue