diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-09-22 23:56:00 +0200 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-09-22 23:56:00 +0200 |
| commit | 0da4717983cbf192367e4fb16a5951bc6c27e4da (patch) | |
| tree | 97da205e393056b7185488dfe91d89a627bb10b5 /packages/frontend/src/components/MkNoteSub.vue | |
| parent | upd: update notes live on feed (diff) | |
| download | sharkey-0da4717983cbf192367e4fb16a5951bc6c27e4da.tar.gz sharkey-0da4717983cbf192367e4fb16a5951bc6c27e4da.tar.bz2 sharkey-0da4717983cbf192367e4fb16a5951bc6c27e4da.zip | |
upd: clicky click on replies
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNoteSub.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue index 2a3cd9bf02..490211fad3 100644 --- a/packages/frontend/src/components/MkNoteSub.vue +++ b/packages/frontend/src/components/MkNoteSub.vue @@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only <Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :i="$i"/> <MkCwButton v-model="showContent" :note="note"/> </p> - <div v-show="note.cw == null || showContent"> + <div v-show="note.cw == null || showContent" @click="noteclick(note.id)"> <MkSubNoteContent :class="$style.text" :note="note"/> </div> </div> @@ -52,6 +52,7 @@ import { $i } from '@/account.js'; import { userPage } from "@/filters/user"; import { checkWordMute } from "@/scripts/check-word-mute"; import { defaultStore } from "@/store"; +import { useRouter } from '@/router.js'; const props = withDefaults(defineProps<{ note: Misskey.entities.Note; @@ -63,8 +64,14 @@ const props = withDefaults(defineProps<{ depth: 1, }); +const router = useRouter(); + const muted = ref(checkWordMute(props.note, $i, defaultStore.state.mutedWords)); +function noteclick(id: string) { + router.push(`/notes/${id}`); +} + let showContent = $ref(false); let replies: Misskey.entities.Note[] = $ref([]); |