kopia lustrzana https://github.com/elk-zone/elk
fix: translation button still display when posts have no contents (#2027)
rodzic
574d72af61
commit
cbba846c4f
|
@ -12,7 +12,11 @@ const {
|
|||
} = useTranslation(status, getLanguageCode())
|
||||
const preferenceHideTranslation = usePreferences('hideTranslation')
|
||||
|
||||
const showButton = computed(() => !preferenceHideTranslation.value && isTranslationEnabled)
|
||||
const showButton = computed(() =>
|
||||
!preferenceHideTranslation.value
|
||||
&& isTranslationEnabled
|
||||
&& status.content.trim().length,
|
||||
)
|
||||
|
||||
let translating = $ref(false)
|
||||
async function toggleTranslation() {
|
||||
|
|
Ładowanie…
Reference in New Issue