feat(client): リアクション一覧詳細ダイアログを表示できるように

Resolve #9634
This commit is contained in:
syuilo 2023-01-19 10:29:30 +09:00
parent ed9a49687e
commit 336d8fe785
5 changed files with 120 additions and 6 deletions

View file

@ -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;
@ -206,6 +214,10 @@ export function getNoteMenu(props: {
icon: 'ti ti-info-circle',
text: i18n.ts.details,
action: notedetails,
}, {
icon: 'ti ti-users',
text: i18n.ts.reactions,
action: showReactions,
}, {
icon: 'ti ti-copy',
text: i18n.ts.copyContent,