feat: improve posts translation logic (#1211)

This commit is contained in:
Alex 2023-01-16 17:55:00 +08:00 committed by GitHub
parent 3b73d11fd3
commit d745bd0583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 78 additions and 23 deletions

View file

@ -206,14 +206,6 @@ const showFavoritedAndBoostedBy = () => {
/>
</NuxtLink>
<CommonDropdownItem
v-if="isTranslationEnabled && status.language !== languageCode"
:text="translation.visible ? $t('menu.show_untranslated') : $t('menu.translate_post')"
icon="i-ri:translate"
:command="command"
@click="toggleTranslation"
/>
<template v-if="isHydrated && currentUser">
<template v-if="isAuthor">
<CommonDropdownItem