refactor: extract check self account
This commit is contained in:
parent
b6c916517c
commit
11fc2572d5
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ const { account, command, context, ...props } = defineProps<{
|
|||
command?: boolean
|
||||
}>()
|
||||
|
||||
const isSelf = $computed(() => currentUser.value?.account.id === account.id)
|
||||
const isSelf = useSelfAccount(() => account)
|
||||
const enable = $computed(() => !isSelf && currentUser.value)
|
||||
const relationship = $computed(() => props.relationship || useRelationship(account).value)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue