mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-04 16:09:59 +00:00
fix: hide mention when not loginned
This commit is contained in:
parent
2004445e81
commit
ef0173a356
1 changed files with 32 additions and 31 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue