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,40 +198,41 @@ function editStatus() {
</template>
</CommonDropdownItem>
<template v-if="isAuthor">
<CommonDropdownItem
icon="i-ri:pushpin-line"
@click="togglePin"
>
{{ status.pinned ? 'Unpin on profile' : 'Pin on profile' }}
</CommonDropdownItem>
<template v-if="currentUser">
<template v-if="isAuthor">
<CommonDropdownItem
icon="i-ri:pushpin-line"
@click="togglePin"
>
{{ status.pinned ? 'Unpin on profile' : 'Pin on profile' }}
</CommonDropdownItem>
<CommonDropdownItem icon="i-ri:edit-line" @click="editStatus">
Edit
</CommonDropdownItem>
<CommonDropdownItem icon="i-ri:edit-line" @click="editStatus">
Edit
</CommonDropdownItem>
<CommonDropdownItem
icon="i-ri:delete-bin-line" text-red-600
@click="deleteStatus"
>
Delete
</CommonDropdownItem>
<CommonDropdownItem
icon="i-ri:delete-bin-line" text-red-600
@click="deleteStatus"
>
Delete
</CommonDropdownItem>
<CommonDropdownItem
icon="i-ri:eraser-line" text-red-600
@click="deleteAndRedraft"
>
Delete & re-draft
</CommonDropdownItem>
</template>
<!-- TODO not available when not the same server -->
<template v-else>
<CommonDropdownItem
icon="i-ri:at-line"
@click="mentionUser(status.account)"
>
Mention @{{ status.account.acct }}
</CommonDropdownItem>
<CommonDropdownItem
icon="i-ri:eraser-line" text-red-600
@click="deleteAndRedraft"
>
Delete & re-draft
</CommonDropdownItem>
</template>
<template v-else>
<CommonDropdownItem
icon="i-ri:at-line"
@click="mentionUser(status.account)"
>
Mention @{{ status.account.acct }}
</CommonDropdownItem>
</template>
</template>
</div>
</template>