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
a0588be405
commit
e8945f244d
@ -35,32 +35,30 @@ export const SidebarParentSelect: React.FC<Props> = ({ onChange, issueDetails, d
|
|||||||
projectId={projectId as string}
|
projectId={projectId as string}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="flex items-center gap-2 rounded bg-custom-background-80 px-2.5 py-0.5 text-xs max-w-max">
|
<button
|
||||||
<button
|
type="button"
|
||||||
type="button"
|
className={`flex items-center gap-2 rounded bg-custom-background-80 px-2.5 py-0.5 text-xs max-w-max" ${
|
||||||
className={`${disabled ? "cursor-not-allowed" : "cursor-pointer "}`}
|
disabled ? "cursor-not-allowed" : "cursor-pointer "
|
||||||
onClick={() => setIsParentModalOpen(true)}
|
}`}
|
||||||
disabled={disabled}
|
onClick={() => {
|
||||||
>
|
if (issueDetails?.parent) {
|
||||||
{selectedParentIssue && issueDetails?.parent ? (
|
onChange("");
|
||||||
`${selectedParentIssue.project__identifier}-${selectedParentIssue.sequence_id}`
|
setSelectedParentIssue(null);
|
||||||
) : !selectedParentIssue && issueDetails?.parent ? (
|
} else {
|
||||||
`${issueDetails.parent_detail?.project_detail.identifier}-${issueDetails.parent_detail?.sequence_id}`
|
setIsParentModalOpen(true);
|
||||||
) : (
|
}
|
||||||
<span className="text-custom-text-200">Select issue</span>
|
}}
|
||||||
)}
|
disabled={disabled}
|
||||||
</button>
|
>
|
||||||
{selectedParentIssue && issueDetails?.parent && (
|
{selectedParentIssue && issueDetails?.parent ? (
|
||||||
<button
|
`${selectedParentIssue.project__identifier}-${selectedParentIssue.sequence_id}`
|
||||||
type="button"
|
) : !selectedParentIssue && issueDetails?.parent ? (
|
||||||
className={`${disabled ? "cursor-not-allowed" : "cursor-pointer "}`}
|
`${issueDetails.parent_detail?.project_detail.identifier}-${issueDetails.parent_detail?.sequence_id}`
|
||||||
onClick={() => onChange("")}
|
) : (
|
||||||
disabled={disabled}
|
<span className="text-custom-text-200">Select issue</span>
|
||||||
>
|
|
||||||
<X className="h-2.5 w-2.5" />
|
|
||||||
</button>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
{issueDetails?.parent && <X className="h-2.5 w-2.5" />}
|
||||||
|
</button>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user