Skip to content

Commit

Permalink
Grouping of Edit disab. with subitem enabled #2159
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbasti committed Nov 30, 2023
1 parent f920832 commit 741b1b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const LogObjectContextMenu = (props: ObjectContextMenuProps): React.ReactElement
<StyledIcon name="paste" color={colors.interactive.primaryResting} />
<Typography color={"primary"}>{menuItemText("paste", "log curve", logCurvesReference?.componentUids)}</Typography>
</MenuItem>,
<NestedMenuItem key={"editlognestedmenu"} label={"Edit"} disabled={checkedObjects.length === 0} icon="edit">
<NestedMenuItem key={"editlognestedmenu"} label={"Edit"} icon="edit">
{[
<MenuItem key={"trimlogobject"} onClick={onClickTrimLogObject} disabled={checkedObjects.length !== 1}>
<StyledIcon name="formatLine" color={colors.interactive.primaryResting} />
Expand Down

0 comments on commit 741b1b1

Please sign in to comment.