0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed static Delete button from the dropdown

ref https://linear.app/ghost/issue/AP-420/i-can-see-a-delete-action-on-posts-that-are-not-mine
This commit is contained in:
Djordje Vlaisavljevic 2024-10-22 14:51:45 +01:00
parent ba43678964
commit 8846cb9d19

View file

@ -249,9 +249,9 @@ const FeedItem: React.FC<FeedItemProps> = ({actor, object, layout, type, comment
// Don't need to know about setting timeouts or anything like that
};
const handleDelete = () => {
// Handle delete action
};
// const handleDelete = () => {
// // Handle delete action
// };
const handleCopyLink = async () => {
if (object?.url) {
@ -279,12 +279,12 @@ const FeedItem: React.FC<FeedItemProps> = ({actor, object, layout, type, comment
});
// TODO: If this is your own Note/Article, you should be able to delete it
menuItems.push({
id: 'delete',
label: 'Delete',
destructive: true,
onClick: handleDelete
});
// menuItems.push({
// id: 'delete',
// label: 'Delete',
// destructive: true,
// onClick: handleDelete
// });
const UserMenuTrigger = (
<Button