diff --git a/web/ce/components/cycles/end-cycle/modal.tsx b/web/ce/components/cycles/end-cycle/modal.tsx index de66c1a9cbd..754c84f9f41 100644 --- a/web/ce/components/cycles/end-cycle/modal.tsx +++ b/web/ce/components/cycles/end-cycle/modal.tsx @@ -7,6 +7,7 @@ interface Props { projectId: string; workspaceSlug: string; transferrableIssuesCount: number; + cycleName: string; } export const EndCycleModal: React.FC = () => <>; diff --git a/web/ce/store/cycle/index.ts b/web/ce/store/cycle/index.ts new file mode 100644 index 00000000000..d9b3080a862 --- /dev/null +++ b/web/ce/store/cycle/index.ts @@ -0,0 +1 @@ +export type { ICycleStore } from "@/store/cycle.store"; diff --git a/web/core/components/cycles/list/cycle-list-item-action.tsx b/web/core/components/cycles/list/cycle-list-item-action.tsx index a627353fb77..8f546d23896 100644 --- a/web/core/components/cycles/list/cycle-list-item-action.tsx +++ b/web/core/components/cycles/list/cycle-list-item-action.tsx @@ -82,10 +82,10 @@ export const CycleListItemAction: FC = observer((props) => { // derived values const cycleStatus = cycleDetails.status ? (cycleDetails.status.toLocaleLowerCase() as TCycleGroups) : "draft"; - + const showIssueCount = useMemo(() => cycleStatus === "draft" || cycleStatus === "upcoming", [cycleStatus]); - const showTransferIssues = cycleDetails.pending_issues > 0 && cycleStatus === "completed"; + const showTransferIssues = routerProjectId && cycleDetails.pending_issues > 0 && cycleStatus === "completed"; const isEditingAllowed = allowPermissions( [EUserPermissions.ADMIN, EUserPermissions.MEMBER], diff --git a/web/core/components/cycles/quick-actions.tsx b/web/core/components/cycles/quick-actions.tsx index 0f6a27979f0..a64f6fd16db 100644 --- a/web/core/components/cycles/quick-actions.tsx +++ b/web/core/components/cycles/quick-actions.tsx @@ -177,6 +177,7 @@ export const CycleQuickActions: React.FC = observer((props) => { projectId={projectId} workspaceSlug={workspaceSlug} transferrableIssuesCount={cycleDetails.pending_issues} + cycleName={cycleDetails.name} /> )} diff --git a/web/core/hooks/store/use-cycle.ts b/web/core/hooks/store/use-cycle.ts index b77440bdd74..08a6daa02d3 100644 --- a/web/core/hooks/store/use-cycle.ts +++ b/web/core/hooks/store/use-cycle.ts @@ -2,7 +2,7 @@ import { useContext } from "react"; // mobx store import { StoreContext } from "@/lib/store-context"; // types -import { ICycleStore } from "@/store/cycle.store"; +import { ICycleStore } from "@/plane-web/store/cycle"; export const useCycle = (): ICycleStore => { const context = useContext(StoreContext); diff --git a/web/ee/store/cycle/index.ts b/web/ee/store/cycle/index.ts new file mode 100644 index 00000000000..3614d60c00a --- /dev/null +++ b/web/ee/store/cycle/index.ts @@ -0,0 +1 @@ +export * from "@/store/cycle.store";