mirror of
https://github.com/sim1222/misskey.git
synced 2025-05-03 20:57:20 +09:00
feat: reaction list2
This commit is contained in:
parent
ec877b05d4
commit
69b3244d43
@ -26,6 +26,13 @@ export function getNoteMenu(props: {
|
|||||||
|
|
||||||
const appearNote = isRenote ? props.note.renote as misskey.entities.Note : props.note;
|
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 {
|
function pakuru(): void {
|
||||||
os.confirm({
|
os.confirm({
|
||||||
type: 'question',
|
type: 'question',
|
||||||
@ -245,6 +252,11 @@ export function getNoteMenu(props: {
|
|||||||
text: i18n.ts.translate,
|
text: i18n.ts.translate,
|
||||||
action: translate,
|
action: translate,
|
||||||
} : undefined,
|
} : undefined,
|
||||||
|
{
|
||||||
|
icon: ',',
|
||||||
|
text: i18n.ts.showState,
|
||||||
|
action: () => reactionList(),
|
||||||
|
},
|
||||||
null,
|
null,
|
||||||
statePromise.then(state => state.isFavorited ? {
|
statePromise.then(state => state.isFavorited ? {
|
||||||
icon: 'fas fa-star',
|
icon: 'fas fa-star',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user