From 4b75c68753deab3b445c8bea2d1b75f84357aac8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 21 Jan 2023 16:59:58 +0900 Subject: fix(client): The … button on notes does nothing when not logged in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #9659 --- packages/frontend/src/scripts/get-note-menu.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/frontend/src/scripts') 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, -- cgit v1.2.3-freya