From 3d5cde21926c217c554c9249c99f29957a84ee64 Mon Sep 17 00:00:00 2001 From: NoriDev Date: Tue, 14 Nov 2023 17:46:01 +0900 Subject: [PATCH] fix 5b406d50 --- packages/frontend/src/components/MkNoteDetailed.vue | 9 +++++++-- packages/frontend/src/components/MkSubNoteContent.vue | 7 ++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 99d9648d98..f97842a413 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -121,6 +121,10 @@ SPDX-License-Identifier: AGPL-3.0-only +
+
+
{{ appearNote.text }}
+
@@ -353,6 +357,7 @@ const isDeleted = ref(false); const muted = ref($i ? checkWordMute(appearNote, $i, $i.mutedWords) : false); const translation = ref(null); const translating = ref(false); +const viewTextSource = ref(false); const noNyaize = ref(false); const parsed = appearNote.text ? mfm.parse(appearNote.text) : null; const urls = parsed ? extractUrlFromMfm(parsed) : null; @@ -565,13 +570,13 @@ function onContextmenu(ev: MouseEvent): void { ev.preventDefault(); react(); } else { - const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, noNyaize, menuButton, isDeleted }); + const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, viewTextSource, noNyaize, menuButton, isDeleted }); os.contextMenu(menu, ev).then(focus).finally(cleanup); } } function menu(viaKeyboard = false): void { - const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, noNyaize, menuButton, isDeleted }); + const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, viewTextSource, noNyaize, menuButton, isDeleted }); os.popupMenu(menu, menuButton.value, { viaKeyboard, }).then(focus).finally(cleanup); diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue index 921473a6e3..36891745dc 100644 --- a/packages/frontend/src/components/MkSubNoteContent.vue +++ b/packages/frontend/src/components/MkSubNoteContent.vue @@ -35,6 +35,10 @@ SPDX-License-Identifier: AGPL-3.0-only
+
+
+
{{ appearNote.text }}
+
@@ -165,6 +169,7 @@ const showContent = ref(true); const translation = ref(null); const translating = ref(false); +const viewTextSource = ref(false); const noNyaize = ref(false); const parsed = props.note.text ? mfm.parse(props.note.text) : null; @@ -370,7 +375,7 @@ function menu(viaKeyboard = false): void { return; } - const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, noNyaize, menuButton, isDeleted, currentClip: currentClip?.value }); + const { menu, cleanup } = getNoteMenu({ note: note, translating, translation, viewTextSource, noNyaize, menuButton, isDeleted, currentClip: currentClip?.value }); os.popupMenu(menu, menuButton.value, { viaKeyboard, }).then(focus).finally(cleanup);