Merge pull request #1883 from makeplane/sync/ce-ee

Sync: Community Changes
This commit is contained in:
pushya22
2024-12-05 16:39:33 +05:30
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ import { observer } from "mobx-react";
import { IState } from "@plane/types";
// components
import { StateItemTitle } from "@/components/project-states/state-item-title";
// constants
import { DISPLAY_WORKFLOW_PRO_CTA } from "@/constants/state";
//
import { AddStateTransition } from "./add-state-transition";
@@ -29,7 +31,9 @@ export const StateItemChild = observer((props: StateItemChildProps) => {
disabled={disabled}
state={state}
/>
<AddStateTransition workspaceSlug={workspaceSlug} projectId={projectId} parentStateId={state.id} />
{DISPLAY_WORKFLOW_PRO_CTA && (
<AddStateTransition workspaceSlug={workspaceSlug} projectId={projectId} parentStateId={state.id} />
)}
</div>
);
});

View File

@@ -47,3 +47,5 @@ export const PENDING_STATE_GROUPS = [
STATE_GROUPS.started.key,
STATE_GROUPS.cancelled.key,
];
export const DISPLAY_WORKFLOW_PRO_CTA = false;