mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-19 23:40:07 +00:00
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>
|
||||
<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"
|
||||
>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue