fix: hide follow button when not loginned

zio/stable
三咲智子 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>