mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: issue transfer validation added for completed cycle (#3715)
This commit is contained in:
parent
48b55ef261
commit
133c9b3ddb
@ -4,6 +4,7 @@ import { useRouter } from "next/router";
|
|||||||
|
|
||||||
import useSWR from "swr";
|
import useSWR from "swr";
|
||||||
|
|
||||||
|
import isEmpty from "lodash/isEmpty";
|
||||||
// component
|
// component
|
||||||
import { Button, TransferIcon } from "@plane/ui";
|
import { Button, TransferIcon } from "@plane/ui";
|
||||||
// icon
|
// icon
|
||||||
@ -43,7 +44,7 @@ export const TransferIssues: React.FC<Props> = (props) => {
|
|||||||
<span>Completed cycles are not editable.</span>
|
<span>Completed cycles are not editable.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{transferableIssuesCount > 0 && (
|
{isEmpty(cycleDetails?.progress_snapshot) && transferableIssuesCount > 0 && (
|
||||||
<div>
|
<div>
|
||||||
<Button variant="primary" prependIcon={<TransferIcon color="white" />} onClick={handleClick}>
|
<Button variant="primary" prependIcon={<TransferIcon color="white" />} onClick={handleClick}>
|
||||||
Transfer Issues
|
Transfer Issues
|
||||||
|
Loading…
Reference in New Issue
Block a user