fix: hide mention when not loginned
This commit is contained in:
parent
2004445e81
commit
ef0173a356
|
@ -198,40 +198,41 @@ function editStatus() {
|
||||||
</template>
|
</template>
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
|
|
||||||
<template v-if="isAuthor">
|
<template v-if="currentUser">
|
||||||
<CommonDropdownItem
|
<template v-if="isAuthor">
|
||||||
icon="i-ri:pushpin-line"
|
<CommonDropdownItem
|
||||||
@click="togglePin"
|
icon="i-ri:pushpin-line"
|
||||||
>
|
@click="togglePin"
|
||||||
{{ status.pinned ? 'Unpin on profile' : 'Pin on profile' }}
|
>
|
||||||
</CommonDropdownItem>
|
{{ status.pinned ? 'Unpin on profile' : 'Pin on profile' }}
|
||||||
|
</CommonDropdownItem>
|
||||||
|
|
||||||
<CommonDropdownItem icon="i-ri:edit-line" @click="editStatus">
|
<CommonDropdownItem icon="i-ri:edit-line" @click="editStatus">
|
||||||
Edit
|
Edit
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
|
|
||||||
<CommonDropdownItem
|
<CommonDropdownItem
|
||||||
icon="i-ri:delete-bin-line" text-red-600
|
icon="i-ri:delete-bin-line" text-red-600
|
||||||
@click="deleteStatus"
|
@click="deleteStatus"
|
||||||
>
|
>
|
||||||
Delete
|
Delete
|
||||||
</CommonDropdownItem>
|
</CommonDropdownItem>
|
||||||
|
|
||||||
<CommonDropdownItem
|
<CommonDropdownItem
|
||||||
icon="i-ri:eraser-line" text-red-600
|
icon="i-ri:eraser-line" text-red-600
|
||||||
@click="deleteAndRedraft"
|
@click="deleteAndRedraft"
|
||||||
>
|
>
|
||||||
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"
|
@click="mentionUser(status.account)"
|
||||||
@click="mentionUser(status.account)"
|
>
|
||||||
>
|
Mention @{{ status.account.acct }}
|
||||||
Mention @{{ status.account.acct }}
|
</CommonDropdownItem>
|
||||||
</CommonDropdownItem>
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue