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 // Don't need to know about setting timeouts or anything like that
}; };
const handleDelete = () => { // const handleDelete = () => {
// Handle delete action // // Handle delete action
}; // };
const handleCopyLink = async () => { const handleCopyLink = async () => {
if (object?.url) { 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 // TODO: If this is your own Note/Article, you should be able to delete it
menuItems.push({ // menuItems.push({
id: 'delete', // id: 'delete',
label: 'Delete', // label: 'Delete',
destructive: true, // destructive: true,
onClick: handleDelete // onClick: handleDelete
}); // });
const UserMenuTrigger = ( const UserMenuTrigger = (
<Button <Button