fix: translate posts target language is not current selected language (#1263)
This commit is contained in:
parent
a7e1dad3d2
commit
0b77ad3f43
4 changed files with 28 additions and 21 deletions
|
@ -27,18 +27,6 @@ const userSettings = useUserSettings()
|
|||
|
||||
const isAuthor = $computed(() => status.account.id === currentUser.value?.account.id)
|
||||
|
||||
const {
|
||||
toggle: _toggleTranslation,
|
||||
translation,
|
||||
enabled: isTranslationEnabled,
|
||||
} = useTranslation(props.status)
|
||||
|
||||
const toggleTranslation = async () => {
|
||||
isLoading.translation = true
|
||||
await _toggleTranslation()
|
||||
isLoading.translation = false
|
||||
}
|
||||
|
||||
const { client } = $(useMasto())
|
||||
|
||||
const getPermalinkUrl = (status: mastodon.v1.Status) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue