From 7462a1e816d341ac84eb60073dd6874a132b0151 Mon Sep 17 00:00:00 2001 From: nenohi Date: Sun, 13 Nov 2022 07:54:05 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=8E=E3=83=BC=E3=83=88=E3=81=AE=E8=A9=B3?= =?UTF-8?q?=E7=B4=B0=E3=83=9C=E3=82=BF=E3=83=B3=E3=82=92...=E3=81=AB?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=20(#9166)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * noteの詳細を追加 * add detail option to note menu * add detailed , fix typo * delete button Co-authored-by: Gray Olson --- packages/client/src/scripts/get-note-menu.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 692986cd5..4826cd70f 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -8,6 +8,7 @@ import * as os from '@/os'; import copyToClipboard from '@/scripts/copy-to-clipboard'; import { url } from '@/config'; import { noteActions } from '@/store'; +import { notePage } from '@/filters/note'; export function getNoteMenu(props: { note: misskey.entities.Note; @@ -172,7 +173,9 @@ export function getNoteMenu(props: { url: `${url}/notes/${appearNote.id}`, }); } - + function notedetails(): void { + os.pageWindow(`/notes/${appearNote.id}`); + } async function translate(): Promise { if (props.translation.value != null) return; props.translating.value = true; @@ -198,8 +201,11 @@ export function getNoteMenu(props: { danger: true, action: unclip, }, null] : [] - ), - { + ), { + icon: 'fas fa-external-link-alt', + text: i18n.ts.details, + action: notedetails, + }, { icon: 'fas fa-copy', text: i18n.ts.copyContent, action: copyContent, @@ -300,6 +306,10 @@ export function getNoteMenu(props: { .filter(x => x !== undefined); } else { menu = [{ + icon: 'fas fa-external-link-alt', + text: i18n.ts.detailed, + action: openDetail, + }, { icon: 'fas fa-copy', text: i18n.ts.copyContent, action: copyContent,