fix: respect source language of post and move translation UI into menu
This commit is contained in:
parent
bb05003fa3
commit
3f382bdad0
2 changed files with 15 additions and 14 deletions
|
@ -175,16 +175,6 @@ function mention() {
|
|||
/>
|
||||
</CommonTooltip>
|
||||
|
||||
<CommonTooltip v-if="isTranslationEnabled" placement="bottom" content="Translate">
|
||||
<StatusActionButton
|
||||
color="text-pink" hover="text-pink" group-hover="bg-pink/10"
|
||||
icon="i-ri:translate"
|
||||
:active="translation.visible"
|
||||
:disabled="isLoading.translation"
|
||||
@click="toggleTranslation()"
|
||||
/>
|
||||
</CommonTooltip>
|
||||
|
||||
<CommonDropdown placement="bottom">
|
||||
<CommonTooltip placement="bottom" content="More">
|
||||
<StatusActionButton
|
||||
|
@ -203,6 +193,15 @@ function mention() {
|
|||
Open in original site
|
||||
</CommonDropdownItem>
|
||||
|
||||
<CommonDropdownItem v-if="isTranslationEnabled && status.language !== languageCode" icon="i-ri:translate" @click="toggleTranslation">
|
||||
<template v-if="!translation.visible">
|
||||
Translate post
|
||||
</template>
|
||||
<template v-else>
|
||||
Show original post
|
||||
</template>
|
||||
</CommonDropdownItem>
|
||||
|
||||
<template v-if="isAuthor">
|
||||
<CommonDropdownItem
|
||||
icon="i-ri:pushpin-line"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue