1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-20 07:49:57 +00:00

fix: hide mention when not loginned

This commit is contained in:
三咲智子 2022-11-29 01:37:50 +08:00
parent 2004445e81
commit ef0173a356
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -198,6 +198,7 @@ function editStatus() {
</template> </template>
</CommonDropdownItem> </CommonDropdownItem>
<template v-if="currentUser">
<template v-if="isAuthor"> <template v-if="isAuthor">
<CommonDropdownItem <CommonDropdownItem
icon="i-ri:pushpin-line" icon="i-ri:pushpin-line"
@ -224,7 +225,6 @@ function editStatus() {
Delete & re-draft Delete & re-draft
</CommonDropdownItem> </CommonDropdownItem>
</template> </template>
<!-- TODO not available when not the same server -->
<template v-else> <template v-else>
<CommonDropdownItem <CommonDropdownItem
icon="i-ri:at-line" icon="i-ri:at-line"
@ -233,6 +233,7 @@ function editStatus() {
Mention @{{ status.account.acct }} Mention @{{ status.account.acct }}
</CommonDropdownItem> </CommonDropdownItem>
</template> </template>
</template>
</div> </div>
</template> </template>
</CommonDropdown> </CommonDropdown>