fix: no translations on sub notes

Closes bug:  transfem-org/Sharkey#89
This commit is contained in:
Mar0xy 2023-10-19 22:23:27 +02:00
parent 86f41914a6
commit fc5d75f8d4
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 18 additions and 2 deletions

View file

@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkCwButton v-model="showContent" :note="note"/>
</p>
<div v-show="note.cw == null || showContent">
<MkSubNoteContent :class="$style.text" :note="note"/>
<MkSubNoteContent :class="$style.text" :note="note" :translating="translating" :translation="translation"/>
</div>
</div>
<footer :class="$style.footer">
@ -121,7 +121,7 @@ const props = withDefaults(defineProps<{
const el = shallowRef<HTMLElement>();
const muted = ref($i ? checkWordMute(props.note, $i, $i.mutedWords) : false);
const translation = ref(null);
const translation = ref<any>(null);
const translating = ref(false);
const isDeleted = ref(false);
const renoted = ref(false);