fix: hide mention when not loginned

zio/stable
三咲智子 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
1 changed files with 32 additions and 31 deletions

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>