Fixed context menu not working when clicking on the graph
This commit is contained in:
parent
7e86e3b2fd
commit
759d30014b
@ -526,41 +526,41 @@ fun CommitLine(
|
||||
) {
|
||||
val commitRefs = graphNode.refs
|
||||
|
||||
Box(modifier = Modifier
|
||||
.clickable {
|
||||
onRevCommitSelected(graphNode)
|
||||
}
|
||||
.padding(start = graphWidth + PADDING_BETWEEN_DIVIDER_AND_MESSAGE.dp)
|
||||
) {
|
||||
ContextMenuArea(
|
||||
items = {
|
||||
listOf(
|
||||
ContextMenuItem(
|
||||
label = "Checkout commit",
|
||||
onClick = { logViewModel.checkoutCommit(graphNode) }),
|
||||
ContextMenuItem(
|
||||
label = "Create branch",
|
||||
onClick = showCreateNewBranch
|
||||
),
|
||||
ContextMenuItem(
|
||||
label = "Create tag",
|
||||
onClick = showCreateNewTag
|
||||
),
|
||||
ContextMenuItem(
|
||||
label = "Revert commit",
|
||||
onClick = { logViewModel.revertCommit(graphNode) }
|
||||
),
|
||||
ContextMenuItem(
|
||||
label = "Cherry-pick commit",
|
||||
onClick = { logViewModel.cherrypickCommit(graphNode) }
|
||||
),
|
||||
ContextMenuArea(
|
||||
items = {
|
||||
listOf(
|
||||
ContextMenuItem(
|
||||
label = "Checkout commit",
|
||||
onClick = { logViewModel.checkoutCommit(graphNode) }),
|
||||
ContextMenuItem(
|
||||
label = "Create branch",
|
||||
onClick = showCreateNewBranch
|
||||
),
|
||||
ContextMenuItem(
|
||||
label = "Create tag",
|
||||
onClick = showCreateNewTag
|
||||
),
|
||||
ContextMenuItem(
|
||||
label = "Revert commit",
|
||||
onClick = { logViewModel.revertCommit(graphNode) }
|
||||
),
|
||||
ContextMenuItem(
|
||||
label = "Cherry-pick commit",
|
||||
onClick = { logViewModel.cherrypickCommit(graphNode) }
|
||||
),
|
||||
|
||||
ContextMenuItem(
|
||||
label = "Reset current branch to this commit",
|
||||
onClick = { resetBranch(graphNode) }
|
||||
)
|
||||
ContextMenuItem(
|
||||
label = "Reset current branch to this commit",
|
||||
onClick = { resetBranch(graphNode) }
|
||||
)
|
||||
},
|
||||
)
|
||||
},
|
||||
) {
|
||||
Box(modifier = Modifier
|
||||
.clickable {
|
||||
onRevCommitSelected(graphNode)
|
||||
}
|
||||
.padding(start = graphWidth + PADDING_BETWEEN_DIVIDER_AND_MESSAGE.dp)
|
||||
) {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
|
Loading…
Reference in New Issue
Block a user