From 4b75c68753deab3b445c8bea2d1b75f84357aac8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jan 2023 16:59:58 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20The=20=E2=80=A6=20button=20on=20?= =?UTF-8?q?notes=20does=20nothing=20when=20not=20logged=20in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #9659 --- CHANGELOG.md | 1 + packages/frontend/src/scripts/get-note-menu.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef8238ab23..26632b8399 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ You should also include the user name that made the change. ### Bugfixes - playを削除する手段がなかったのを修正 +- The … button on notes does nothing when not logged in ## 13.0.0 (2023/01/16) diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index da7f2a5c20..b5d2251d28 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -187,7 +187,7 @@ export function getNoteMenu(props: { }); } - function notedetails(): void { + function openDetail(): void { os.pageWindow(`/notes/${appearNote.id}`); } @@ -225,7 +225,7 @@ export function getNoteMenu(props: { ), { icon: 'ti ti-info-circle', text: i18n.ts.details, - action: notedetails, + action: openDetail, }, { icon: 'ti ti-users', text: i18n.ts.reactions,