diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-07-20 22:24:26 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-07-20 22:24:26 +0900 |
| commit | 50e3ca19bc45c1fd4fd7432bdb30a130f2691076 (patch) | |
| tree | 44415cdf4dd1bfd0abdf440dd4a19e310ee8fd87 /packages/client/src/components/MkNoteSub.vue | |
| parent | chore(deps): bump terser from 5.9.0 to 5.14.2 (#9024) (diff) | |
| download | sharkey-50e3ca19bc45c1fd4fd7432bdb30a130f2691076.tar.gz sharkey-50e3ca19bc45c1fd4fd7432bdb30a130f2691076.tar.bz2 sharkey-50e3ca19bc45c1fd4fd7432bdb30a130f2691076.zip | |
refactor(client): :sparkles:
Diffstat (limited to 'packages/client/src/components/MkNoteSub.vue')
| -rw-r--r-- | packages/client/src/components/MkNoteSub.vue | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 30c27e6235..9ae773bfb6 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -6,7 +6,7 @@ <XNoteHeader class="header" :note="note" :mini="true"/> <div class="body"> <p v-if="note.cw != null" class="cw"> - <Mfm v-if="note.cw != ''" class="text" :text="note.cw" :author="note.user" :i="$i" :custom-emojis="note.emojis" /> + <Mfm v-if="note.cw != ''" class="text" :text="note.cw" :author="note.user" :i="$i" :custom-emojis="note.emojis"/> <XCwButton v-model="showContent" :note="note"/> </p> <div v-show="note.cw == null || showContent" class="content"> @@ -19,7 +19,7 @@ <MkNoteSub v-for="reply in replies" :key="reply.id" :note="reply" class="reply" :detail="true" :depth="depth + 1"/> </template> <div v-else class="more"> - <MkA class="text _link" :to="notePage(note)">{{ $ts.continueThread }} <i class="fas fa-angle-double-right"></i></MkA> + <MkA class="text _link" :to="notePage(note)">{{ i18n.ts.continueThread }} <i class="fas fa-angle-double-right"></i></MkA> </div> </div> </template> @@ -27,11 +27,12 @@ <script lang="ts" setup> import { } from 'vue'; import * as misskey from 'misskey-js'; -import { notePage } from '@/filters/note'; import XNoteHeader from './note-header.vue'; import MkNoteSubNoteContent from './sub-note-content.vue'; import XCwButton from './cw-button.vue'; +import { notePage } from '@/filters/note'; import * as os from '@/os'; +import { i18n } from '@/i18n'; const props = withDefaults(defineProps<{ note: misskey.entities.Note; @@ -49,7 +50,7 @@ let replies: misskey.entities.Note[] = $ref([]); if (props.detail) { os.api('notes/children', { noteId: props.note.id, - limit: 5 + limit: 5, }).then(res => { replies = res; }); |