Skip to content

Commit 09bf150

Browse files
allouispeterzimon
andauthored
Add support for deleting posts (#22404)
ref https://linear.app/ghost/issue/AP-786 This removes the feature flag for the delete button, officially releasing this feature to production! --------- Co-authored-by: Peter Zimon <[email protected]>
1 parent cd010ec commit 09bf150

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

apps/admin-x-activitypub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tryghost/admin-x-activitypub",
3-
"version": "0.4.9",
3+
"version": "0.5.0",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

apps/admin-x-activitypub/src/components/feed/FeedItemMenu.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
PopoverTrigger,
1616
buttonVariants
1717
} from '@tryghost/shade';
18-
import {useFeatureFlags} from '@src/lib/feature-flags';
1918

2019
interface FeedItemMenuProps {
2120
trigger: React.ReactNode;
@@ -32,8 +31,6 @@ const FeedItemMenu: React.FC<FeedItemMenuProps> = ({
3231
allowDelete = false,
3332
layout
3433
}) => {
35-
const {isEnabled} = useFeatureFlags();
36-
3734
const handleCopyLinkClick = (e: React.MouseEvent<HTMLElement>) => {
3835
e.stopPropagation();
3936
onCopyLink();
@@ -57,7 +54,7 @@ const FeedItemMenu: React.FC<FeedItemMenuProps> = ({
5754
Copy link
5855
</Button>
5956
</PopoverClose>
60-
{isEnabled('deleteButton') && allowDelete &&
57+
{allowDelete &&
6158
<AlertDialogTrigger asChild>
6259
<PopoverClose asChild>
6360
<Button

apps/admin-x-activitypub/src/lib/feature-flags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, {createContext, useContext, useEffect, useState} from 'react';
22
import {useLocation} from '@tryghost/admin-x-framework';
33

44
// Define all available feature flags here
5-
export const FEATURE_FLAGS = ['deleteButton'] as const;
5+
export const FEATURE_FLAGS = [] as const;
66

77
// ---
88
export type FeatureFlag = typeof FEATURE_FLAGS[number] | string;

0 commit comments

Comments
 (0)