improvement: remove add sub-issues button from the bottom if sub-issues are available. (#3725)

This commit is contained in:
Prateek Shourya 2024-02-21 16:47:39 +05:30 committed by GitHub
parent ee318ce91b
commit 92becbc617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -341,38 +341,6 @@ export const SubIssuesRoot: FC<ISubIssuesRoot> = observer((props) => {
/> />
</div> </div>
)} )}
<div>
<CustomMenu
label={
<div className="flex items-center gap-1">
<Plus className="h-3 w-3" />
Add sub-issue
</div>
}
buttonClassName="whitespace-nowrap"
placement="bottom-end"
noBorder
noChevron
>
<CustomMenu.MenuItem
onClick={() => {
setTrackElement("Issue detail add sub-issue");
handleIssueCrudState("create", parentIssueId, null);
}}
>
Create new
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
onClick={() => {
setTrackElement("Issue detail add sub-issue");
handleIssueCrudState("existing", parentIssueId, null);
}}
>
Add an existing issue
</CustomMenu.MenuItem>
</CustomMenu>
</div>
</> </>
) : ( ) : (
!disabled && ( !disabled && (