From 7a50bc049e19ba1f577f7b226a90844ddafb3d3c Mon Sep 17 00:00:00 2001 From: Insert5StarName Date: Fri, 22 Sep 2023 00:00:12 +0200 Subject: [PATCH] upd: allow for Remote Emojis to be Deleted --- .../frontend/src/pages/custom-emojis-manager.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/custom-emojis-manager.vue b/packages/frontend/src/pages/custom-emojis-manager.vue index bee73045b..a8d9dd3a3 100644 --- a/packages/frontend/src/pages/custom-emojis-manager.vue +++ b/packages/frontend/src/pages/custom-emojis-manager.vue @@ -165,10 +165,20 @@ const remoteMenu = (emoji, ev: MouseEvent) => { os.popupMenu([{ type: 'label', text: ':' + emoji.name + ':', - }, { + }, + { text: i18n.ts.import, icon: 'ti ti-plus', action: () => { im(emoji); }, + }, + { + text: i18n.ts.delete, + icon: "ti ti-trash", + action: () => { + os.apiWithDialog("admin/emoji/delete", { + id: emoji.id, + }); + }, }], ev.currentTarget ?? ev.target); };