mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: remove parent option added in issue sidebar and peek overview
This commit is contained in:
parent
29a0ba4ddc
commit
a0588be405
@ -4,6 +4,8 @@ import { useRouter } from "next/router";
|
|||||||
|
|
||||||
// components
|
// components
|
||||||
import { ParentIssuesListModal } from "components/issues";
|
import { ParentIssuesListModal } from "components/issues";
|
||||||
|
// icons
|
||||||
|
import { X } from "lucide-react";
|
||||||
// types
|
// types
|
||||||
import { IIssue, ISearchIssueResponse } from "types";
|
import { IIssue, ISearchIssueResponse } from "types";
|
||||||
|
|
||||||
@ -32,22 +34,33 @@ export const SidebarParentSelect: React.FC<Props> = ({ onChange, issueDetails, d
|
|||||||
issueId={issueId as string}
|
issueId={issueId as string}
|
||||||
projectId={projectId as string}
|
projectId={projectId as string}
|
||||||
/>
|
/>
|
||||||
<button
|
|
||||||
type="button"
|
<div className="flex items-center gap-2 rounded bg-custom-background-80 px-2.5 py-0.5 text-xs max-w-max">
|
||||||
className={`rounded bg-custom-background-80 px-2.5 py-0.5 text-xs ${
|
<button
|
||||||
disabled ? "cursor-not-allowed" : "cursor-pointer "
|
type="button"
|
||||||
}`}
|
className={`${disabled ? "cursor-not-allowed" : "cursor-pointer "}`}
|
||||||
onClick={() => setIsParentModalOpen(true)}
|
onClick={() => setIsParentModalOpen(true)}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
{selectedParentIssue && issueDetails?.parent ? (
|
{selectedParentIssue && issueDetails?.parent ? (
|
||||||
`${selectedParentIssue.project__identifier}-${selectedParentIssue.sequence_id}`
|
`${selectedParentIssue.project__identifier}-${selectedParentIssue.sequence_id}`
|
||||||
) : !selectedParentIssue && issueDetails?.parent ? (
|
) : !selectedParentIssue && issueDetails?.parent ? (
|
||||||
`${issueDetails.parent_detail?.project_detail.identifier}-${issueDetails.parent_detail?.sequence_id}`
|
`${issueDetails.parent_detail?.project_detail.identifier}-${issueDetails.parent_detail?.sequence_id}`
|
||||||
) : (
|
) : (
|
||||||
<span className="text-custom-text-200">Select issue</span>
|
<span className="text-custom-text-200">Select issue</span>
|
||||||
|
)}
|
||||||
|
</button>
|
||||||
|
{selectedParentIssue && issueDetails?.parent && (
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className={`${disabled ? "cursor-not-allowed" : "cursor-pointer "}`}
|
||||||
|
onClick={() => onChange("")}
|
||||||
|
disabled={disabled}
|
||||||
|
>
|
||||||
|
<X className="h-2.5 w-2.5" />
|
||||||
|
</button>
|
||||||
)}
|
)}
|
||||||
</button>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user