fix: inbox issue header quick action validation (#4344)

This commit is contained in:
Anmol Singh Bhatia 2024-05-03 14:17:21 +05:30 committed by GitHub
parent 091fdb89ac
commit 2884b0e22e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>