fix: hide follow button when not loginned

This commit is contained in:
三咲智子 2022-11-29 01:28:40 +08:00
parent d2c4d62cf5
commit 2004445e81
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
2 changed files with 59 additions and 57 deletions

View file

@ -22,7 +22,7 @@ async function toggleFollow() {
<template>
<button
v-if="!isSelf"
v-if="!isSelf && currentUser"
flex gap-1 items-center h-fit rounded hover="op100 text-white b-orange" group
@click="toggleFollow"
>

View file

@ -49,6 +49,7 @@ const toggleBlockDomain = async () => {
</CommonDropdownItem>
</NuxtLink>
<template v-if="currentUser">
<template v-if="!isSelf">
<CommonDropdownItem icon="i-ri:at-line" @click="mentionUser(account)">
Mention @{{ account.acct }}
@ -111,5 +112,6 @@ const toggleBlockDomain = async () => {
</NuxtLink>
</template>
</template>
</template>
</CommonDropdown>
</template>