diff --git a/web/core/components/inbox/modals/create-edit-modal/issue-properties.tsx b/web/core/components/inbox/modals/create-edit-modal/issue-properties.tsx index 65f6d8ad298..737f8e52c19 100644 --- a/web/core/components/inbox/modals/create-edit-modal/issue-properties.tsx +++ b/web/core/components/inbox/modals/create-edit-modal/issue-properties.tsx @@ -2,6 +2,7 @@ import { FC, useState } from "react"; import { observer } from "mobx-react"; import { LayoutPanelTop } from "lucide-react"; import { ISearchIssueResponse, TIssue } from "@plane/types"; +import { CustomMenu } from "@plane/ui"; // components import { CycleDropdown, @@ -94,7 +95,7 @@ export const InboxIssueProperties: FC = observer((props)
(date ? handleData("start_date", renderFormattedPayloadDate(date)) : null)} + onChange={(date) => handleData("start_date", date ? renderFormattedPayloadDate(date) : "")} buttonVariant="border-with-text" minDate={minDate ?? undefined} placeholder="Start date" @@ -106,7 +107,7 @@ export const InboxIssueProperties: FC = observer((props)
(date ? handleData("target_date", renderFormattedPayloadDate(date)) : null)} + onChange={(date) => handleData("target_date", date ? renderFormattedPayloadDate(date) : "")} buttonVariant="border-with-text" minDate={minDate ?? undefined} placeholder="Due date" @@ -157,18 +158,43 @@ export const InboxIssueProperties: FC = observer((props) {/* add parent */} {isVisible && ( <> - + {selectedParentIssue ? ( + + + + {selectedParentIssue + ? `${selectedParentIssue.project__identifier}-${selectedParentIssue.sequence_id}` + : `Add parent`} + + + } + placement="bottom-start" + > + <> + setParentIssueModalOpen(true)}> + Change parent issue + + handleData("parent_id", "")}> + Remove parent issue + + + + ) : ( + + )} + setParentIssueModalOpen(false)}