うごいた

This commit is contained in:
ThinaticSystem
2022-09-12 00:02:31 +09:00
committed by sim1222
parent c56f8fd953
commit 3a7fbf9406
4 changed files with 24 additions and 9 deletions

View File

@ -4,7 +4,7 @@ import { popup } from '@/os';
class ReactionPicker {
private src: Ref<HTMLElement | null> = ref(null);
private manualShowing = ref(false);
private onChosen?: (reaction: string) => void;
private onChosen?: ({ reaction: string, withRenote: boolean }) => void;
private onClosed?: () => void;
constructor() {
@ -17,8 +17,8 @@ class ReactionPicker {
asReactionPicker: true,
manualShowing: this.manualShowing
}, {
done: reaction => {
this.onChosen!(reaction);
done: results => {
this.onChosen!(results.reaction, results.withRenote);
},
close: () => {
this.manualShowing.value = false;