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:
parent
ba43678964
commit
8846cb9d19
1 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue