fix: hide follow button when not loginned
This commit is contained in:
parent
d2c4d62cf5
commit
2004445e81
2 changed files with 59 additions and 57 deletions
|
@ -22,7 +22,7 @@ async function toggleFollow() {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
v-if="!isSelf"
|
v-if="!isSelf && currentUser"
|
||||||
flex gap-1 items-center h-fit rounded hover="op100 text-white b-orange" group
|
flex gap-1 items-center h-fit rounded hover="op100 text-white b-orange" group
|
||||||
@click="toggleFollow"
|
@click="toggleFollow"
|
||||||
>
|
>
|
||||||
|
|
|
@ -49,6 +49,7 @@ const toggleBlockDomain = async () => {
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
|
|
||||||
|
<template v-if="currentUser">
|
||||||
<template v-if="!isSelf">
|
<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 }}
|
||||||
|
@ -111,5 +112,6 @@ const toggleBlockDomain = async () => {
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
</template>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</CommonDropdown>
|
</CommonDropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue