Skip to content

Commit

Permalink
fix(frontend): 노트 게시 예약 목록에서 노트 번역 버튼이 표시됨
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Oct 31, 2024
1 parent a3bc7bb commit b6bd8cc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/frontend/src/components/MkSubNoteContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
}>(), {
Expand Down

0 comments on commit b6bd8cc

Please sign in to comment.