diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-19 10:29:30 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-19 10:29:30 +0900 |
| commit | 336d8fe785d5b26f85088659db022a45b74c5d9f (patch) | |
| tree | dded1c2c5a003399369150a3f76c9a52766aa20c /packages/frontend/src/scripts | |
| parent | Update CHANGELOG.md (diff) | |
| download | misskey-336d8fe785d5b26f85088659db022a45b74c5d9f.tar.gz misskey-336d8fe785d5b26f85088659db022a45b74c5d9f.tar.bz2 misskey-336d8fe785d5b26f85088659db022a45b74c5d9f.zip | |
feat(client): リアクション一覧詳細ダイアログを表示できるように
Resolve #9634
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, |