diff options
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/get-note-menu.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 54de3d95df..7a426ec722 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -174,9 +174,17 @@ export function getNoteMenu(props: { url: `${url}/notes/${appearNote.id}`, }); } + function notedetails(): void { os.pageWindow(`/notes/${appearNote.id}`); } + + function showReactions(): void { + os.popup(defineAsyncComponent(() => import('@/components/MkReactedUsersDialog.vue')), { + noteId: appearNote.id, + }, {}, 'closed'); + } + async function translate(): Promise<void> { if (props.translation.value != null) return; props.translating.value = true; @@ -207,6 +215,10 @@ export function getNoteMenu(props: { text: i18n.ts.details, action: notedetails, }, { + icon: 'ti ti-users', + text: i18n.ts.reactions, + action: showReactions, + }, { icon: 'ti ti-copy', text: i18n.ts.copyContent, action: copyContent, |