From 69b3244d43c47cb506d7a52f3a74a41f5c70576a Mon Sep 17 00:00:00 2001 From: sim1222 Date: Sat, 24 Dec 2022 19:19:04 +0900 Subject: [PATCH] feat: reaction list2 --- packages/client/src/scripts/get-note-menu.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 188fd4e40..8c10259c7 100644 --- a/packages/client/src/scripts/get-note-menu.ts +++ b/packages/client/src/scripts/get-note-menu.ts @@ -26,6 +26,13 @@ export function getNoteMenu(props: { const appearNote = isRenote ? props.note.renote as misskey.entities.Note : props.note; + + function reactionList():void { + os.popup(defineAsyncComponent(() => import('@/components/MkReactionList.vue')), { + note: props.note, + }); + } + function pakuru(): void { os.confirm({ type: 'question', @@ -245,6 +252,11 @@ export function getNoteMenu(props: { text: i18n.ts.translate, action: translate, } : undefined, + { + icon: ',', + text: i18n.ts.showState, + action: () => reactionList(), + }, null, statePromise.then(state => state.isFavorited ? { icon: 'fas fa-star',