mirror of
https://github.com/sim1222/misskey.git
synced 2025-04-29 02:37:22 +09:00
fix: show toast when emoji imported
This commit is contained in:
parent
768894faf6
commit
6965cae734
@ -94,7 +94,7 @@ export async function openReactionImportMenu(ev: MouseEvent, reaction: string, n
|
|||||||
menuItems.push({
|
menuItems.push({
|
||||||
type: 'button',
|
type: 'button',
|
||||||
icon: 'fas fa-check',
|
icon: 'fas fa-check',
|
||||||
text: 'リアクションする',
|
text: 'リアクションする', //todo
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const duplication: boolean = await os.api('meta').then(meta => {
|
const duplication: boolean = await os.api('meta').then(meta => {
|
||||||
const emojis = meta.emojis;
|
const emojis = meta.emojis;
|
||||||
@ -108,6 +108,7 @@ export async function openReactionImportMenu(ev: MouseEvent, reaction: string, n
|
|||||||
reaction: `:${name}:`,
|
reaction: `:${name}:`,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
os.toast('絵文字をインポートしました');
|
||||||
await importEmoji(true).then(() => {
|
await importEmoji(true).then(() => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
os.api('notes/reactions/create', {
|
os.api('notes/reactions/create', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user