forked from github/plane
fix: inbox issue header quick action validation (#4344)
This commit is contained in:
parent
091fdb89ac
commit
2884b0e22e
@ -292,32 +292,36 @@ export const InboxIssueActionsHeader: FC<TInboxIssueActionsHeader> = observer((p
|
|||||||
</ControlLink>
|
</ControlLink>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<CustomMenu verticalEllipsis placement="bottom-start">
|
<>
|
||||||
{canMarkAsAccepted && (
|
{isAllowed && (
|
||||||
<CustomMenu.MenuItem onClick={() => setIsSnoozeDateModalOpen(true)}>
|
<CustomMenu verticalEllipsis placement="bottom-start">
|
||||||
<div className="flex items-center gap-2">
|
{canMarkAsAccepted && (
|
||||||
<Clock size={14} strokeWidth={2} />
|
<CustomMenu.MenuItem onClick={() => setIsSnoozeDateModalOpen(true)}>
|
||||||
Snooze
|
<div className="flex items-center gap-2">
|
||||||
</div>
|
<Clock size={14} strokeWidth={2} />
|
||||||
</CustomMenu.MenuItem>
|
Snooze
|
||||||
|
</div>
|
||||||
|
</CustomMenu.MenuItem>
|
||||||
|
)}
|
||||||
|
{canMarkAsDuplicate && (
|
||||||
|
<CustomMenu.MenuItem onClick={() => setSelectDuplicateIssue(true)}>
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<FileStack size={14} strokeWidth={2} />
|
||||||
|
Mark as duplicate
|
||||||
|
</div>
|
||||||
|
</CustomMenu.MenuItem>
|
||||||
|
)}
|
||||||
|
{canDelete && (
|
||||||
|
<CustomMenu.MenuItem onClick={() => setDeleteIssueModal(true)}>
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<Trash2 size={14} strokeWidth={2} />
|
||||||
|
Delete
|
||||||
|
</div>
|
||||||
|
</CustomMenu.MenuItem>
|
||||||
|
)}
|
||||||
|
</CustomMenu>
|
||||||
)}
|
)}
|
||||||
{canMarkAsDuplicate && (
|
</>
|
||||||
<CustomMenu.MenuItem onClick={() => setSelectDuplicateIssue(true)}>
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<FileStack size={14} strokeWidth={2} />
|
|
||||||
Mark as duplicate
|
|
||||||
</div>
|
|
||||||
</CustomMenu.MenuItem>
|
|
||||||
)}
|
|
||||||
{canDelete && (
|
|
||||||
<CustomMenu.MenuItem onClick={() => setDeleteIssueModal(true)}>
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<Trash2 size={14} strokeWidth={2} />
|
|
||||||
Delete
|
|
||||||
</div>
|
|
||||||
</CustomMenu.MenuItem>
|
|
||||||
)}
|
|
||||||
</CustomMenu>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user