mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 06:18:46 +09:00
fix(frontend): 노트 게시 예약 목록에서 노트 번역 버튼이 표시됨
This commit is contained in:
parent
a3bc7bb694
commit
b6bd8ccb5c
@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
:enableEmojiMenuReaction="!!$i"
|
||||
/>
|
||||
<MkA v-if="note.renoteId" :class="$style.rp" :to="`/notes/${note.renoteId}`">RN: ...</MkA>
|
||||
<div v-if="defaultStore.state.showTranslateButtonInNote && (!defaultStore.state.useAutoTranslate || (!$i.policies.canUseAutoTranslate || (defaultStore.state.useAutoTranslate && (isLong || note.cw != null || !showContent)))) && instance.translatorAvailable && $i && $i.policies.canUseTranslator && note.text && isForeignLanguage" style="padding-top: 5px; color: var(--accent);">
|
||||
<div v-if="defaultStore.state.showTranslateButtonInNote && (!defaultStore.state.useAutoTranslate || (!$i.policies.canUseAutoTranslate || (defaultStore.state.useAutoTranslate && (isLong || note.cw != null || !showContent)))) && instance.translatorAvailable && $i && $i.policies.canUseTranslator && note.text && isForeignLanguage && !note.isSchedule" style="padding-top: 5px; color: var(--accent);">
|
||||
<button v-if="!(translating || translation)" ref="translateButton" class="_button" @click.stop="translate()">{{ i18n.ts.translateNote }}</button>
|
||||
<button v-else class="_button" @click.stop="translation = null">{{ i18n.ts.close }}</button>
|
||||
</div>
|
||||
@ -161,7 +161,10 @@ import detectLanguage from '@/scripts/detect-language.js';
|
||||
import number from '@/filters/number.js';
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
note: Misskey.entities.Note;
|
||||
note: Misskey.entities.Note & {
|
||||
isSchedule? : boolean,
|
||||
scheduledNoteId?: string
|
||||
};
|
||||
mock?: boolean;
|
||||
showSubNoteFooterButton?: boolean;
|
||||
}>(), {
|
||||
|
Loading…
Reference in New Issue
Block a user