From 4e2a1ccc7497d5858f9290ca3c732d1c1af3b5ef Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 7 Mar 2023 02:09:36 +0000 Subject: [PATCH] move post context --- packages/app/constants/menu-contexts.js | 37 +++++++------------------ 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/packages/app/constants/menu-contexts.js b/packages/app/constants/menu-contexts.js index 2649c9cd..e1cbc3ad 100755 --- a/packages/app/constants/menu-contexts.js +++ b/packages/app/constants/menu-contexts.js @@ -19,6 +19,16 @@ export default { }) } + items.push({ + label: "Paste", + icon: "Clipboard", + action: (clickedItem, ctx) => { + app.message.error("This action is not supported by your browser") + + ctx.close() + } + }) + items.push({ label: "Report a bug", icon: "AlertTriangle", @@ -104,33 +114,6 @@ export default { }) } - // check if parent has `self-post` attribute - const isSelf = parent.getAttribute("self-post").toBoolean() - - if (isSelf) { - items.push({ - type: "separator" - }) - - items.push({ - label: "Delete", - icon: "Trash", - action: () => { - app.eventBus.emit(`post.${parent.id}.delete`) - control.close() - } - }) - - items.push({ - label: "Edit", - icon: "Edit2", - action: () => { - app.eventBus.emit(`post.${parent.id}.edit`) - control.close() - } - }) - } - return items } } \ No newline at end of file